mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-22 07:03:38 +00:00
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:
parent
82998255b7
commit
669216fcab
@ -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++) {
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user