mirror of https://github.com/PCSX2/pcsx2.git
SPU2-X:
Fixed a problem in volume slides that caused them to update way too slow. Music in Ys 6 works again. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1490 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
bef8f8b07f
commit
f166306276
|
@ -204,7 +204,7 @@ void V_VolumeSlide::Update()
|
||||||
Value -= PsxRates[(Increment^0x7f)-0x1b+off+32];
|
Value -= PsxRates[(Increment^0x7f)-0x1b+off+32];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Value -= Increment;
|
Value -= Increment<<8;
|
||||||
|
|
||||||
if (Value < 0)
|
if (Value < 0)
|
||||||
{
|
{
|
||||||
|
@ -221,7 +221,7 @@ void V_VolumeSlide::Update()
|
||||||
if( (Mode & VOLFLAG_EXPONENTIAL) && (Value>=0x60000000))
|
if( (Mode & VOLFLAG_EXPONENTIAL) && (Value>=0x60000000))
|
||||||
Value += PsxRates[(Increment^0x7f)-0x18+32];
|
Value += PsxRates[(Increment^0x7f)-0x18+32];
|
||||||
else
|
else
|
||||||
Value += Increment;
|
Value += Increment<<8;
|
||||||
|
|
||||||
if( Value < 0 ) // wrapped around the "top"?
|
if( Value < 0 ) // wrapped around the "top"?
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue