Update audio libraries #1423

miniaudio -> v0.10.25
dr_wav -> v0.12.14
dr_mp3 -> v0.6.19
dr_flac -> v0.12.22
This commit is contained in:
raysan5 2020-11-15 14:04:28 +01:00
parent 8ff2b387f9
commit 321f55bce1
5 changed files with 12139 additions and 6692 deletions

8434
src/external/dr_flac.h vendored

File diff suppressed because it is too large Load diff

2390
src/external/dr_mp3.h vendored

File diff suppressed because it is too large Load diff

638
src/external/dr_wav.h vendored

File diff suppressed because it is too large Load diff

7363
src/external/miniaudio.h vendored

File diff suppressed because it is too large Load diff

View file

@ -2031,12 +2031,12 @@ static Wave LoadMP3(const unsigned char *fileData, unsigned int fileSize)
// Decode the entire MP3 file in one go // Decode the entire MP3 file in one go
unsigned long long int totalFrameCount = 0; unsigned long long int totalFrameCount = 0;
wave.data = drmp3_open_memory_and_read_f32(fileData, fileSize, &config, &totalFrameCount); wave.data = drmp3_open_memory_and_read_pcm_frames_f32(fileData, fileSize, &config, &totalFrameCount, NULL);
if (wave.data != NULL) if (wave.data != NULL)
{ {
wave.channels = config.outputChannels; wave.channels = config.channels;
wave.sampleRate = config.outputSampleRate; wave.sampleRate = config.sampleRate;
wave.sampleCount = (int)totalFrameCount*wave.channels; wave.sampleCount = (int)totalFrameCount*wave.channels;
wave.sampleSize = 32; wave.sampleSize = 32;