Fix Linux build
This commit is contained in:
parent
165b005aeb
commit
0a5bc4e779
3 changed files with 4 additions and 7 deletions
|
@ -20,6 +20,3 @@
|
|||
#define SAMPLE_FMT SDL_SAMPLE_FMT
|
||||
#define USE_SDL
|
||||
#endif
|
||||
#ifdef USE_SDL
|
||||
#define LockAudioDevice SDL_LockAudioDevice
|
||||
#endif
|
||||
|
|
|
@ -97,7 +97,7 @@ void PlaybackInstance::LockAudioDevice() {
|
|||
}
|
||||
void PlaybackInstance::UnlockAudioDevice() {
|
||||
#ifdef USE_SDL
|
||||
SDL_UnlockAudioDevice(device)
|
||||
SDL_UnlockAudioDevice(device);
|
||||
#else
|
||||
audio_playback_mutex.unlock();
|
||||
#endif
|
||||
|
|
|
@ -247,8 +247,8 @@ private:
|
|||
std::string filePath;
|
||||
#ifndef USE_SDL
|
||||
std::mutex audio_playback_mutex;
|
||||
std::atomic_bool audio_playback_paused;
|
||||
#endif
|
||||
std::atomic_bool audio_playback_paused;
|
||||
void LockAudioDevice();
|
||||
void UnlockAudioDevice();
|
||||
std::atomic_bool running;
|
||||
|
|
Loading…
Reference in a new issue