examples : use miniaudio for direct decoding flac, mp3, ogg and wav (#2759)

This commit is contained in:
Dmitry Atamanov
2025-02-27 12:06:54 +05:00
committed by GitHub
parent b5d21359c1
commit 7d3da68f79
10 changed files with 99150 additions and 8930 deletions

View File

@ -143,7 +143,7 @@ bool is_wav_buffer(const std::string buf);
// fname can be a buffer of WAV data instead of a filename
// The sample rate of the audio must be equal to COMMON_SAMPLE_RATE
// If stereo flag is set and the audio has 2 channels, the pcmf32s will contain 2 channel PCM
bool read_wav(
bool read_audio_data(
const std::string & fname,
std::vector<float> & pcmf32,
std::vector<std::vector<float>> & pcmf32s,