public void decodeFrame ( byte [ ] frame , SampleBuffer buffer ) throws AACException { if ( frame != null ) _in . setData ( frame ) ; Logger . debug ( "bits left " + _in . getBitsLeft ( ) ) ; try { decode ( buffer ) ; } catch ( AACException e ) { if ( ! e . isEndOfStream ( ) ) throw e ; else Logger . warn ( "unexpected end of frame" ) ; } }
Decodes one frame of AAC data in frame mode and returns the raw PCM data .