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");
        }
    }
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");
        }
    }
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.

@param frame
the AAC frame
@param buffer
a buffer to hold the decoded PCM data
@throws AACException
if decoding fails
Decodes one frame of AAC data in frame mode and returns the raw PCM data .