}
private void decode(SampleBuffer buffer) throws AACException {
if(ADIFHeader.isPresent(in)) {
adifHeader = ADIFHeader.readHeader(in);
final PCE pce = adifHeader.getFirstPCE();
config.setProfile(pce.getProfile());
config.setSampleFrequency(pce.getSampleFrequency());
config.setChannelConfiguration(ChannelConfiguration.forInt(pce.getChannelCount()));
}
if(!canDecode(config.getProfile())) throw new AACException("unsupported profile: "+config.getProfile().getDescription());
syntacticElements.startNewFrame();