diff options
| author | 2016-11-22 20:12:35 +0200 | |
|---|---|---|
| committer | 2016-11-22 20:12:35 +0200 | |
| commit | 0fbe0634a76f489711fb5a602d3b93454fc6fe19 (patch) | |
| tree | a156b6ceb0320264065f36ef781d3b7a30efdef0 /src | |
| parent | Improve MIME description and add French translation (diff) | |
| parent | Improve verbosity of audio errors with SDL_GetError() (diff) | |
| download | yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.tar.gz yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.tar.xz yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.zip | |
Merge pull request #2206 from freiro/SDL_Audio_Error
Improve verbosity of audio errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio_core/sdl2_sink.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/sdl2_sink.cpp b/src/audio_core/sdl2_sink.cpp index 75cc0d6dd..4b66cd826 100644 --- a/src/audio_core/sdl2_sink.cpp +++ b/src/audio_core/sdl2_sink.cpp | |||
| @@ -25,7 +25,7 @@ struct SDL2Sink::Impl { | |||
| 25 | 25 | ||
| 26 | SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { | 26 | SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { |
| 27 | if (SDL_Init(SDL_INIT_AUDIO) < 0) { | 27 | if (SDL_Init(SDL_INIT_AUDIO) < 0) { |
| 28 | LOG_CRITICAL(Audio_Sink, "SDL_Init(SDL_INIT_AUDIO) failed"); | 28 | LOG_CRITICAL(Audio_Sink, "SDL_Init(SDL_INIT_AUDIO) failed with: %s", SDL_GetError()); |
| 29 | impl->audio_device_id = 0; | 29 | impl->audio_device_id = 0; |
| 30 | return; | 30 | return; |
| 31 | } | 31 | } |
| @@ -45,7 +45,7 @@ SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { | |||
| 45 | impl->audio_device_id = | 45 | impl->audio_device_id = |
| 46 | SDL_OpenAudioDevice(nullptr, false, &desired_audiospec, &obtained_audiospec, 0); | 46 | SDL_OpenAudioDevice(nullptr, false, &desired_audiospec, &obtained_audiospec, 0); |
| 47 | if (impl->audio_device_id <= 0) { | 47 | if (impl->audio_device_id <= 0) { |
| 48 | LOG_CRITICAL(Audio_Sink, "SDL_OpenAudioDevice failed"); | 48 | LOG_CRITICAL(Audio_Sink, "SDL_OpenAudioDevice failed with: %s", SDL_GetError()); |
| 49 | return; | 49 | return; |
| 50 | } | 50 | } |
| 51 | 51 | ||