Fix audio balance below 50%

This commit is contained in:
byuu 2019-11-10 09:37:56 +09:00
parent da7350ac5c
commit b7b848eff5
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ using namespace nall;
namespace Emulator {
static const string Name = "bsnes";
static const string Version = "112.9";
static const string Version = "112.10";
static const string Author = "byuu";
static const string License = "GPLv3";
static const string Website = "https://byuu.org";

View File

@ -74,6 +74,6 @@ auto Program::updateAudioEffects() -> void {
double volume = settings.audio.volume * 0.01;
Emulator::audio.setVolume(volume);
double balance = max(-1.0, min(+1.0, (settings.audio.balance - 50) / 50.0));
double balance = max(-1.0, min(+1.0, ((int)settings.audio.balance - 50) / 50.0));
Emulator::audio.setBalance(balance);
}