Skip to main content

decode_ogg_vorbis_reader

Function decode_ogg_vorbis_reader 

Source
pub fn decode_ogg_vorbis_reader<T: Read + Seek>(rdr: T) -> Result<Pcm16>
Expand description

Decode an Ogg/Vorbis stream into interleaved PCM16.

This uses lewton::inside_ogg::OggStreamReader, which expects a pure audio Ogg/Vorbis stream (i.e., not OGV with multiple streams). This matches the typical Siglus usage (BGM/SE stored as .ogg/.owp or embedded in OVK).