Add a "Mute Audio" hotkey

This commit is contained in:
Kewlan 2020-06-25 21:05:03 +02:00
parent fbc30df353
commit 3fcf2f201c
6 changed files with 17 additions and 3 deletions

View file

@ -67,7 +67,7 @@ s64 Stream::GetBufferReleaseCycles(const Buffer& buffer) const {
}
static void VolumeAdjustSamples(std::vector<s16>& samples, float game_volume) {
const float volume{std::clamp(Settings::values.volume - (1.0f - game_volume), 0.0f, 1.0f)};
const float volume{std::clamp(Settings::Volume() - (1.0f - game_volume), 0.0f, 1.0f)};
if (volume == 1.0f) {
return;