[deploy] fix: sound player volume

This commit is contained in:
Haibo 2023-09-28 18:18:12 +08:00
parent 6f187cfc94
commit 8ffd29eb38
1 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,10 @@ float SoundPlayer::GetVolume() const
void SoundPlayer::SetVolume(float volume) void SoundPlayer::SetVolume(float volume)
{ {
volume_ = volume; volume_ = volume;
for (auto& sound : sound_list_)
{
sound->ResetVolume();
}
} }
void SoundPlayer::PauseAll() void SoundPlayer::PauseAll()