From 43b809d5d6a1b59fbe19f03f51cdc52ba296d1ab Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sun, 2 May 2021 15:29:08 +0200 Subject: [PATCH] return error when unable to set sound volume --- ScStwLibraries/sources/scstwsoundplayer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ScStwLibraries/sources/scstwsoundplayer.cpp b/ScStwLibraries/sources/scstwsoundplayer.cpp index 4bde4e8..2f9887d 100644 --- a/ScStwLibraries/sources/scstwsoundplayer.cpp +++ b/ScStwLibraries/sources/scstwsoundplayer.cpp @@ -63,6 +63,7 @@ ScStwSoundPlayer::PlayResult ScStwSoundPlayer::play(ScStwSoundPlayer::StartSound } else { qDebug() << "[WARNING][SoundPlayer] Could not determine output device to set volume"; + return Error; } this->soundEffect->setVolume(1);