:) Applied OV2's pause when inactive fix, now works great! that'll make people happy.
This commit is contained in:
parent
9948bf65bb
commit
c309704d55
|
@ -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