return error when unable to set sound volume
This commit is contained in:
parent
38199766ce
commit
43b809d5d6
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ ScStwSoundPlayer::PlayResult ScStwSoundPlayer::play(ScStwSoundPlayer::StartSound
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
qDebug() << "[WARNING][SoundPlayer] Could not determine output device to set volume";
|
qDebug() << "[WARNING][SoundPlayer] Could not determine output device to set volume";
|
||||||
|
return Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->soundEffect->setVolume(1);
|
this->soundEffect->setVolume(1);
|
||||||
|
|
Reference in a new issue