public boolean populate ( OggPacket packet ) { // TODO Finish the flac support properly if ( type == OggStreamIdentifier . OGG_FLAC ) { if ( tags == null ) { tags = new FlacTags ( packet ) ; return true ; } else { // TODO Finish FLAC support return false ; } } OggStreamPacket sPacket = createNext ( packet ) ; if ( sPacket instanceof OggAudioTagsHeader ) { tags = ( OggAudioTagsHeader ) sPacket ; // Are there more headers to come? if ( type == OggStreamIdentifier . OGG_VORBIS ) { return true ; } else { return false ; } } if ( sPacket instanceof OggAudioSetupHeader ) { setup = ( OggAudioSetupHeader ) sPacket ; // Setup is always last return false ; } throw new IllegalArgumentException ( "Expecting header packet but got " + sPacket ) ; }
Populates with the next header