Upgrade the achievement sound volume setting to the new format

This commit is contained in:
Henrik Rydgård committed 2025-02-12 10:23:26 -06:00
1 parent 62e01d37a5
commit aad3aa02e7
7 files changed
+25 -13

No files matched your search

+2 -2
View File
@@ -534,9 +534,9 @@ void SoundEffectMixer::Mix(int16_t *buffer, int sz, int sampleRateHz) {
}
}
void SoundEffectMixer::Play(UI::UISound sfx, float volume) {
void SoundEffectMixer::Play(UI::UISound sfx, float multiplier) {
std::lock_guard<std::mutex> guard(mutex_);
queue_.push_back(PlayInstance{ sfx, 0, (int)(255.0f * volume), false });
queue_.push_back(PlayInstance{ sfx, 0, (int)(255.0f * multiplier), false });
}
void SoundEffectMixer::UpdateSample(UI::UISound sound, Sample *sample) {