This should be better, previous values still caused a peak blowout. Also

limited sound SE and BGM value to 8, because any higher and you have
garbage.
This commit is contained in:
bagnz0r 2013-07-06 23:40:05 +02:00
parent 82998255b7
commit 669216fcab
2 changed files with 3 additions and 3 deletions

View File

@ -413,7 +413,7 @@ void SasInstance::Mix(u32 outAddr, u32 inAddr, int leftVol, int rightVol) {
// Resample to the correct pitch, writing exactly "grainSize" samples.
u32 sampleFrac = voice.sampleFrac;
const int MAX_CONFIG_VOLUME = 18;
const int MAX_CONFIG_VOLUME = 20;
int volumeShift = (MAX_CONFIG_VOLUME - g_Config.iSEVolume);
if (volumeShift < 0) volumeShift = 0;
for (int i = 0; i < grainSize; i++) {

View File

@ -805,7 +805,7 @@ void AudioScreen::render() {
if (g_Config.iBGMVolume > 1)
g_Config.iBGMVolume -= 1;
if (UIButton(GEN_ID, hlinear1, 50, 0, a->T("+1"), ALIGN_LEFT))
if (g_Config.iBGMVolume < 10)
if (g_Config.iBGMVolume < 8)
g_Config.iBGMVolume += 1;
y+=20;
char sevol[256];
@ -818,7 +818,7 @@ void AudioScreen::render() {
if (g_Config.iSEVolume > 1)
g_Config.iSEVolume -= 1;
if (UIButton(GEN_ID, hlinear2, 50, 0, a->T("+1"), ALIGN_LEFT))
if (g_Config.iSEVolume < 10)
if (g_Config.iSEVolume < 8)
g_Config.iSEVolume += 1;
y+=10;