ogg.demuxer

NOTES

   - Output format ID is a custom value: MMF_AUDIO_VORBIS
   - This demuxer is intended to be paired with a libvorbis synthesis decoder
     that consumes the above length-prefixed packet stream.

DESCRIPTION

   Reggae demuxer for MorphOS that uses libogg sync/stream APIs (as exposed by
   vorbisfile.library) to parse an Ogg physical bitstream and output a simple
   *packetized* Vorbis elementary stream.

   Output framing (to be consumed by vorbis.decoder.packets):
     u32be packet_length
     u8    packet_bytes[packet_length]

   The demuxer selects the first logical stream whose BOS packet matches the
   Vorbis Identification header (packet type 1 + "vorbis"). All packets,
   including the three Vorbis header packets, are forwarded.

FEATURES

   - Uses ogg_sync_* and ogg_stream_* for parsing and resync (no manual lacing)
   - Ogg page CRC verification (reject corrupt pages; resync/reset)
   - Chained Ogg support (after EOS, automatically searches for next BOS Vorbis)