mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 18:23:43 +01:00
Upgrade the achievement sound volume setting to the new format
This commit is contained in:
1 parent
62e01d37a5
commit
aad3aa02e7
7 files changed
+25
-13
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user