Audio Loader#

struct AudioPCM#

Decoded PCM container.

Always mono (multi-channel input is mixdown-averaged), float32 in the range [-1, 1]. Sample rate is the value passed to the decoder (miniaudio resamples to this rate on read).

Public Members

std::vector<float> samples#
int32_t sampleRate = {16000}#
int32_t numChannels = {1}#