nCine::AudioReaderOgg class

Audio reader for the Ogg Vorbis format, backed by libvorbis.

Base classes

class IAudioReader
Interface for an audio reader.

Constructors, destructors, conversion operators

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

Public functions

auto operator=(const AudioReaderOgg&) -> AudioReaderOgg& deleted
auto read(void* buffer, std::int32_t bufferSize) const -> std::int32_t override
Decodes audio data into the specified buffer.
void rewind() const override
Rewinds the reader back to the beginning.

Function documentation

std::int32_t nCine::AudioReaderOgg::read(void* buffer, std::int32_t bufferSize) const override

Decodes audio data into the specified buffer.

Parameters
buffer Destination buffer
bufferSize Buffer size in bytes
Returns Number of bytes actually written