nCine::AudioReaderWav class

Audio reader for the WAVE (.wav) format.

Base classes

class IAudioReader
Interface for an audio reader.

Constructors, destructors, conversion operators

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

Public functions

auto operator=(const AudioReaderWav&) -> AudioReaderWav& 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::AudioReaderWav::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