mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
A little fix for the Throttle, it wasn't getting the correct sample_rate thus was too fast
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2774 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
881678540d
commit
632e3bfc85
5 changed files with 10 additions and 7 deletions
|
@ -62,7 +62,7 @@ void CMixer::Mix(short *samples, int numSamples)
|
|||
}
|
||||
|
||||
|
||||
void CMixer::PushSamples(short *samples, int num_stereo_samples)
|
||||
void CMixer::PushSamples(short *samples, int num_stereo_samples, int core_sample_rate)
|
||||
{
|
||||
if (!soundStream)
|
||||
return;
|
||||
|
@ -85,7 +85,7 @@ void CMixer::PushSamples(short *samples, int num_stereo_samples)
|
|||
#endif
|
||||
|
||||
// Write Other Audio
|
||||
if (! m_throttle)
|
||||
if (!m_throttle)
|
||||
return;
|
||||
|
||||
|
||||
|
@ -105,7 +105,7 @@ void CMixer::PushSamples(short *samples, int num_stereo_samples)
|
|||
|
||||
push_sync.Enter();
|
||||
while (num_stereo_samples) {
|
||||
acc += m_sampleRate;
|
||||
acc += core_sample_rate;
|
||||
while (num_stereo_samples && (acc >= 48000)) {
|
||||
PV4l=PV3l;
|
||||
PV3l=PV2l;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue