From 512eba5bf6e4499ad955f269da54e417d1fd504d Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 19 Apr 2019 16:27:21 +0200 Subject: [PATCH] audio: fix build with SDL_Mixer disabled. --- src/audio/audio.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/audio/audio.cpp b/src/audio/audio.cpp index 68bab5be..ae1315a9 100644 --- a/src/audio/audio.cpp +++ b/src/audio/audio.cpp @@ -63,6 +63,7 @@ std::unordered_set> audio::m_streamers; static int g_frequency, g_channels; static audio::format g_format; +#if defined LOL_USE_SDL_MIXER static audio::format sdl2lol_format(Uint16 sdl_format) { switch (sdl_format) @@ -98,6 +99,7 @@ static int lol2sdl_format(audio::format format) default: return 0; } } +#endif /* * Public audio class @@ -230,7 +232,8 @@ void audio::set_tracks(int) {} void audio::set_volume(int, int) {} void audio::mute_all() {} void audio::unmute_all() {} -int audio::start_streaming(std::function const &) { return -1; } +int audio::start_streaming(std::function const &, + enum audio::format, int, int) { return -1; } void audio::stop_streaming(int) {} #endif