nCine::AudioReaderOgg class

Ogg Vorbis audio reader using libvorbis library.

Base classes

class IAudioReader
Audio reader interface.

Constructors, destructors, conversion operators

AudioReaderOgg(std::unique_ptr<Death::IO::Stream> fileHandle, const OggVorbis_File& oggFile)
~AudioReaderOgg() override

Public functions

auto read(void* buffer, unsigned long int bufferSize) const -> unsigned long int override
Decodes audio data in a specified buffer.
void rewind() const override
Resets the audio file seek value.

Function documentation

unsigned long int nCine::AudioReaderOgg::read(void* buffer, unsigned long int bufferSize) const override

Decodes audio data in a specified buffer.

Parameters
buffer Buffer pointer
bufferSize Buffer size in bytes
Returns Number of bytes read