From 0c8f9663f23ba4c8600be8cd1e97a9d9a7e83057 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Sun, 21 May 2017 00:23:07 +0100 Subject: [PATCH] * Add a mutex to prevent issues if audio_mixer_mix is used in a different thread * Use free instead of memalign_free to free the OGG data in audio_mixer_destroy (ideally this should be a responsibility of the caller, just like with the WAV case) * Re-use the voice in audio_mixer_stop --- libretro-common/audio/audio_mixer.c | 33 ++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/libretro-common/audio/audio_mixer.c b/libretro-common/audio/audio_mixer.c index 5e77cf1b0b..a37c08a004 100644 --- a/libretro-common/audio/audio_mixer.c +++ b/libretro-common/audio/audio_mixer.c @@ -24,6 +24,7 @@ #include