summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-11-22 19:12:35 +0100
committerGitHub <noreply@github.com>2016-11-22 19:12:35 +0100
commit0fbe0634a76f489711fb5a602d3b93454fc6fe19 (patch)
treea156b6ceb0320264065f36ef781d3b7a30efdef0 /src
parentImprove MIME description and add French translation (diff)
parentImprove verbosity of audio errors with SDL_GetError() (diff)
downloadyuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.tar
yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.tar.gz
yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.tar.bz2
yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.tar.lz
yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.tar.xz
yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.tar.zst
yuzu-0fbe0634a76f489711fb5a602d3b93454fc6fe19.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/sdl2_sink.cpp4
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;
}