:) 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void soundSetThrottle(unsigned short throttle)
|
||||||
|
{
|
||||||
|
if(!soundDriver)
|
||||||
|
return;
|
||||||
|
soundDriver->setThrottle(throttle);
|
||||||
|
}
|
||||||
|
|
||||||
long soundGetSampleRate()
|
long soundGetSampleRate()
|
||||||
{
|
{
|
||||||
return soundSampleRate;
|
return soundSampleRate;
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
// current value in soundQuality global.
|
// current value in soundQuality global.
|
||||||
bool soundInit();
|
bool soundInit();
|
||||||
|
|
||||||
|
// sets the Sound throttle
|
||||||
|
void soundSetThrottle(unsigned short throttle);
|
||||||
|
|
||||||
// Manages sound volume, where 1.0 is normal
|
// Manages sound volume, where 1.0 is normal
|
||||||
void soundSetVolume( float );
|
void soundSetVolume( float );
|
||||||
float soundGetVolume();
|
float soundGetVolume();
|
||||||
|
|
|
@ -1220,7 +1220,6 @@ void MainWnd::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
|
||||||
}
|
}
|
||||||
theApp.active = a;
|
theApp.active = a;
|
||||||
}
|
}
|
||||||
theApp.active = a;
|
|
||||||
|
|
||||||
memset(theApp.delta,255,sizeof(theApp.delta));
|
memset(theApp.delta,255,sizeof(theApp.delta));
|
||||||
}
|
}
|
||||||
|
|
|
@ -882,8 +882,7 @@ void VBA::updateThrottle( unsigned short throttle )
|
||||||
systemFrameSkip = 0;
|
systemFrameSkip = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
soundShutdown();
|
soundSetThrottle(throttle);
|
||||||
soundInit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue