Removed the system timing hack which was activated when the Accurate VBeam option was enabled.
This commit is contained in:
parent
ad28986d51
commit
c7ccf7e5c6
|
@ -160,8 +160,7 @@ void DSPCallback(u64 userdata, int cyclesLate)
|
||||||
|
|
||||||
void AudioDMACallback(u64 userdata, int cyclesLate)
|
void AudioDMACallback(u64 userdata, int cyclesLate)
|
||||||
{
|
{
|
||||||
int fields = SConfig::GetInstance().m_LocalCoreStartupParameter.bVBeam?2:1;
|
int period = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32);
|
||||||
int period = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32 * fields);
|
|
||||||
DSP::UpdateAudioDMA(); // Push audio to speakers.
|
DSP::UpdateAudioDMA(); // Push audio to speakers.
|
||||||
CoreTiming::ScheduleEvent(period - cyclesLate, et_AudioDMA);
|
CoreTiming::ScheduleEvent(period - cyclesLate, et_AudioDMA);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue