diff options
author | freiro <f73b2894@opayq.com> | 2016-11-22 17:28:11 +0100 |
---|---|---|
committer | freiro <f73b2894@opayq.com> | 2016-11-22 17:28:11 +0100 |
commit | 5dd31f204acf9763778e62c29bf2399de9daacfc (patch) | |
tree | ec12d44e65bf253e12335188c14bdee163126701 /src/audio_core | |
parent | Merge pull request #2195 from Subv/factor_check (diff) | |
download | yuzu-5dd31f204acf9763778e62c29bf2399de9daacfc.tar yuzu-5dd31f204acf9763778e62c29bf2399de9daacfc.tar.gz yuzu-5dd31f204acf9763778e62c29bf2399de9daacfc.tar.bz2 yuzu-5dd31f204acf9763778e62c29bf2399de9daacfc.tar.lz yuzu-5dd31f204acf9763778e62c29bf2399de9daacfc.tar.xz yuzu-5dd31f204acf9763778e62c29bf2399de9daacfc.tar.zst yuzu-5dd31f204acf9763778e62c29bf2399de9daacfc.zip |
Diffstat (limited to 'src/audio_core')
-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 { SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { if (SDL_Init(SDL_INIT_AUDIO) < 0) { - LOG_CRITICAL(Audio_Sink, "SDL_Init(SDL_INIT_AUDIO) failed"); + LOG_CRITICAL(Audio_Sink, "SDL_Init(SDL_INIT_AUDIO) failed with: %s", SDL_GetError()); impl->audio_device_id = 0; return; } @@ -45,7 +45,7 @@ SDL2Sink::SDL2Sink() : impl(std::make_unique<Impl>()) { impl->audio_device_id = SDL_OpenAudioDevice(nullptr, false, &desired_audiospec, &obtained_audiospec, 0); if (impl->audio_device_id <= 0) { - LOG_CRITICAL(Audio_Sink, "SDL_OpenAudioDevice failed"); + LOG_CRITICAL(Audio_Sink, "SDL_OpenAudioDevice failed with: %s", SDL_GetError()); return; } |