nCine::AudioReaderMpt class

Module audio reader using libopenmpt library.

Base classes

class IAudioReader
Audio reader interface.

Constructors, destructors, conversion operators

AudioReaderMpt(std::unique_ptr<Death::IO::Stream> fileHandle, int frequency)
~AudioReaderMpt()

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.
void setLooping(bool value) override
Enables native stream looping if supported.

Function documentation

unsigned long int nCine::AudioReaderMpt::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