Skip to main content

Module vorbis

Module vorbis 

Source
Expand description

Ogg/Vorbis decoding helpers.

Siglus resources commonly embed sound as Ogg/Vorbis (sometimes inside OVK or with a simple XOR obfuscation (OWP)). This module provides a small, format-oriented API that decodes to interleaved PCM16.

Structs§

Pcm16

Functions§

decode_ogg_vorbis_bytes
Decode an Ogg/Vorbis blob in memory.
decode_ogg_vorbis_bytes_to_wav
Decode Ogg/Vorbis bytes and immediately return WAV bytes.
decode_ogg_vorbis_reader
Decode an Ogg/Vorbis stream into interleaved PCM16.
decode_ogg_vorbis_reader_to_wav
Decode an Ogg/Vorbis stream and immediately return WAV bytes.
ogg_vorbis_decoded_len
What decode_ogg_vorbis_reader would produce, without keeping it: channels, sample rate and the number of interleaved samples. For timing a sound that plays as a stream by its decoded length.
pcm16_to_wav_bytes
Encode PCM16 into a minimal RIFF/WAVE (PCM) buffer.