IAudioReader class
#include <nCine/Audio/IAudioReader.h>
Audio reader interface.
Derived classes
- class AudioReaderMpt
- Module audio reader using
libopenmptlibrary. - class AudioReaderOgg
- Ogg Vorbis audio reader using
libvorbislibrary. - class AudioReaderWav
- WAVE audio reader.
Constructors, destructors, conversion operators
- ~IAudioReader() virtual
Public functions
-
auto read(void* buffer,
std::
int32_t bufferSize) const -> std:: int32_t 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
std:: int32_t nCine:: IAudioReader:: read(void* buffer,
std:: int32_t 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 |