nCine::IAudioReader class

Audio reader interface.

Derived classes

class AudioReaderMpt
Module audio reader using libopenmpt library.
class AudioReaderOgg
Ogg Vorbis audio reader using libvorbis library.
class AudioReaderWav
WAVE audio reader.

Constructors, destructors, conversion operators

~IAudioReader() virtual

Public functions

auto read(void* buffer, unsigned long int bufferSize) const -> unsigned long int pure virtual
Decodes audio data in a specified buffer.
void rewind() const pure virtual
Resets the audio file seek value.
void setLooping(bool value) virtual
Enables native stream looping if supported.

Function documentation

unsigned long int nCine::IAudioReader::read(void* buffer, unsigned long int bufferSize) const pure virtual

Decodes audio data in a specified buffer.

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