:) 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:
parent
71a1818c63
commit
2fd0d42cb1
|
@ -543,6 +543,13 @@ bool soundInit()
|
|||
return true;
|
||||
}
|
||||
|
||||
void soundSetThrottle(unsigned short throttle)
|
||||
{
|
||||
if(!soundDriver)
|
||||
return;
|
||||
soundDriver->setThrottle(throttle);
|
||||
}
|
||||
|
||||
long soundGetSampleRate()
|
||||
{
|
||||
return soundSampleRate;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -882,8 +882,7 @@ void VBA::updateThrottle( unsigned short throttle )
|
|||
systemFrameSkip = 0;
|
||||
}
|
||||
|
||||
soundShutdown();
|
||||
soundInit();
|
||||
soundSetThrottle(throttle);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue