diff options
| author | raysan5 <[email protected]> | 2020-07-10 13:29:42 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-07-10 13:29:42 +0200 |
| commit | fa7799143e7381bc9334c54b77266367532a8dc0 (patch) | |
| tree | 968ae90a72a9d9f1fb2255be11ba60779ca66cd0 /src/raudio.c | |
| parent | 57dc8a91dd5aa7fe68c8659343a7a59de5fd24d0 (diff) | |
| download | raylib-fa7799143e7381bc9334c54b77266367532a8dc0.tar.gz raylib-fa7799143e7381bc9334c54b77266367532a8dc0.zip | |
Update miniaudio to v0.10.12, solves #1288
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/raudio.c b/src/raudio.c index 81ccc854..9f8d8317 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -159,6 +159,9 @@ typedef struct tagBITMAPINFOHEADER { #define MA_FREE RL_FREE #define MA_NO_JACK +#define MA_NO_WAV +#define MA_NO_FLAC +#define MA_NO_MP3 #define MINIAUDIO_IMPLEMENTATION #include "external/miniaudio.h" // miniaudio library #undef PlaySound // Win32 API: windows.h > mmsystem.h defines PlaySound macro @@ -444,7 +447,7 @@ void InitAudioDevice(void) // Mixing happens on a seperate thread which means we need to synchronize. I'm using a mutex here to make things simple, but may // want to look at something a bit smarter later on to keep everything real-time, if that's necessary. - if (ma_mutex_init(&AUDIO.System.context, &AUDIO.System.lock) != MA_SUCCESS) + if (ma_mutex_init(&AUDIO.System.lock) != MA_SUCCESS) { TRACELOG(LOG_ERROR, "AUDIO: Failed to create mutex for mixing"); ma_device_uninit(&AUDIO.System.device); |
