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

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@874 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
squall-leonhart 2009-03-25 06:10:43 +00:00
parent 71a1818c63
commit 2fd0d42cb1
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);
}