:) Applied OV2's pause when inactive fix, now works great! that'll make people happy.

This commit is contained in:
squall-leonhart 2009-03-25 06:10:43 +00:00
parent 9948bf65bb
commit c309704d55
4 changed files with 11 additions and 3 deletions

View File

@ -543,6 +543,13 @@ bool soundInit()
return true;
}
void soundSetThrottle(unsigned short throttle)
{
if(!soundDriver)
return;
soundDriver->setThrottle(throttle);
}
long soundGetSampleRate()
{
return soundSampleRate;

View File

@ -11,6 +11,9 @@
// current value in soundQuality global.
bool soundInit();
// sets the Sound throttle
void soundSetThrottle(unsigned short throttle);
// Manages sound volume, where 1.0 is normal
void soundSetVolume( float );
float soundGetVolume();

View File

@ -1220,7 +1220,6 @@ void MainWnd::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
}
theApp.active = a;
}
theApp.active = a;
memset(theApp.delta,255,sizeof(theApp.delta));
}

View File

@ -882,8 +882,7 @@ void VBA::updateThrottle( unsigned short throttle )
systemFrameSkip = 0;
}
soundShutdown();
soundInit();
soundSetThrottle(throttle);
}