summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-11-15 14:04:28 +0100
committerraysan5 <[email protected]>2020-11-15 14:04:28 +0100
commit321f55bce196eab4445cdca67e1ede3740a946d9 (patch)
tree4f0f8ebbb682850990556787891017cc909883c4 /src/raudio.c
parent8ff2b387f920dd61da748599e218245dc8b35de2 (diff)
downloadraylib-321f55bce196eab4445cdca67e1ede3740a946d9.tar.gz
raylib-321f55bce196eab4445cdca67e1ede3740a946d9.zip
Update audio libraries #1423
miniaudio -> v0.10.25 dr_wav -> v0.12.14 dr_mp3 -> v0.6.19 dr_flac -> v0.12.22
Diffstat (limited to 'src/raudio.c')
-rw-r--r--src/raudio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raudio.c b/src/raudio.c
index 61a85f95..00d5e8d1 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -2031,12 +2031,12 @@ static Wave LoadMP3(const unsigned char *fileData, unsigned int fileSize)
// Decode the entire MP3 file in one go
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)
{
- wave.channels = config.outputChannels;
- wave.sampleRate = config.outputSampleRate;
+ wave.channels = config.channels;
+ wave.sampleRate = config.sampleRate;
wave.sampleCount = (int)totalFrameCount*wave.channels;
wave.sampleSize = 32;