소스 검색

audio: fix build with SDL_Mixer disabled.

legacy
Sam Hocevar 6 년 전
부모
커밋
512eba5bf6
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      src/audio/audio.cpp

+ 4
- 1
src/audio/audio.cpp 파일 보기

@@ -63,6 +63,7 @@ std::unordered_set<std::shared_ptr<audio_streamer>> 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<void(void *, int)> const &) { return -1; }
int audio::start_streaming(std::function<void(void *, int)> const &,
enum audio::format, int, int) { return -1; }
void audio::stop_streaming(int) {}
#endif



불러오는 중...
취소
저장