diff --git a/core/oslib/audiobackend_sdl2.cpp b/core/oslib/audiobackend_sdl2.cpp index 3d3efecb3..7a0244b05 100644 --- a/core/oslib/audiobackend_sdl2.cpp +++ b/core/oslib/audiobackend_sdl2.cpp @@ -111,10 +111,9 @@ static u32 sdl2_audio_push(const void* frame, u32 samples, bool wait) { // If wait, then wait for the buffer to be smaller than a certain size. stream_mutex.lock(); if (wait) { - while (sample_count + samples > config::AudioBufferSize) { + while (sample_count + samples > (u32)config::AudioBufferSize) { stream_mutex.unlock(); read_wait.Wait(); - read_wait.Reset(); stream_mutex.lock(); } } diff --git a/shell/linux/Makefile b/shell/linux/Makefile index 59f5eef05..e1a82e9bf 100644 --- a/shell/linux/Makefile +++ b/shell/linux/Makefile @@ -277,6 +277,7 @@ else ifneq (,$(findstring win32,$(platform))) CC = gcc CXX = g++ USE_SDL = 1 + USE_SDLAUDIO = 1 STATIC_LIBZIP = 1 ifeq ($(WITH_DYNAREC), x86) X86_REC := 1