nCine::AudioReaderWav class

WAVE audio reader.

Base classes

class IAudioReader
Audio reader interface.

Constructors, destructors, conversion operators

AudioReaderWav(std::unique_ptr<Death::IO::Stream> fileHandle)

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::AudioReaderWav::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