Class AudioCodec
Defined in File codec.hpp
Nested Relationships
Nested Types
Class Documentation
-
class AudioCodec
Public Static Functions
-
static std::vector<uint8_t> decodeAudioFile(const std::string &filename, ma_format outputFormat = ma_format_s16, uint32_t nchannels = 2, uint32_t sampleRate = 44100, ma_dither_mode dither = ma_dither_mode_none)
-
static std::vector<uint8_t> decodeVorbisFile(const std::string &filename, ma_format format, uint32_t nchannels, uint32_t sampleRate)
-
static uint64_t encodeWavFile(const std::string &filename, const std::vector<uint8_t> &data, ma_format format, uint32_t nchannels, uint32_t sampleRate)
-
static uint64_t encodeMP3File(const std::string &filename, const std::vector<uint8_t> &data, ma_format format, uint32_t nchannels, uint32_t sampleRate, int bitrate, int quality)
-
static std::vector<uint8_t> encodeToMP3(const std::vector<uint8_t> &data, ma_format format, uint32_t nchannels, uint32_t sampleRate, int bitrate, int quality)
-
static uint64_t encodeFlacFile(const std::string &filename, const std::vector<uint8_t> &data, ma_format format, uint32_t nchannels, uint32_t sampleRate, int compressionLevel)
-
static uint64_t encodeVorbisFile(const std::string &filename, const std::vector<uint8_t> &data, ma_format format, uint32_t nchannels, uint32_t sampleRate, float quality)
-
static AudioFileInfo getFileInfo(const std::string &filename)
-
static std::unique_ptr<ma_decoder> initializeDecoder(const std::string &filename, ma_format outputFormat, uint32_t nchannels, uint32_t sampleRate, ma_dither_mode dither)
-
static std::vector<uint8_t> readDecoderFrames(ma_decoder *decoder, uint64_t framesToRead)
-
static std::vector<uint8_t> encodeToWav(const std::vector<uint8_t> &data, ma_format format, uint32_t nchannels, uint32_t sampleRate)
-
class AudioFileStream
Public Functions
-
AudioFileStream(const std::string &filename, ma_format outputFormat = ma_format_s16, uint32_t nchannels = 2, uint32_t sampleRate = 44100, uint64_t framesToRead = 1024, ma_dither_mode dither = ma_dither_mode_none, uint64_t seekFrame = 0)
-
~AudioFileStream()
-
std::vector<uint8_t> readFrames(uint64_t framesToRead = 0)
-
AudioFileStream(const std::string &filename, ma_format outputFormat = ma_format_s16, uint32_t nchannels = 2, uint32_t sampleRate = 44100, uint64_t framesToRead = 1024, ma_dither_mode dither = ma_dither_mode_none, uint64_t seekFrame = 0)
-
static std::vector<uint8_t> decodeAudioFile(const std::string &filename, ma_format outputFormat = ma_format_s16, uint32_t nchannels = 2, uint32_t sampleRate = 44100, ma_dither_mode dither = ma_dither_mode_none)