AudioReaderMp3 class
#include <nCine/Audio/AudioReaderMp3.h>
Audio reader for the MPEG audio format (MP3), backed by libmpg123.
Base classes
- class IAudioReader
- Interface for an audio reader.
Constructors, destructors, conversion operators
-
AudioReaderMp3(std::
unique_ptr<Death:: IO:: Stream> fileHandle, mpg123_handle* handle) - ~AudioReaderMp3() override
- AudioReaderMp3(const AudioReaderMp3&) deleted
Public functions
- auto operator=(const AudioReaderMp3&) -> AudioReaderMp3& 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:: AudioReaderMp3:: 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 |