Remove now useless NumFields Function which always returned 1.

This commit is contained in:
Scott Mansell
2015-02-10 00:40:50 +13:00
parent 8f416821ad
commit 4cb01673a0
4 changed files with 3 additions and 12 deletions

View File

@ -114,8 +114,7 @@ static void DSPCallback(u64 userdata, int cyclesLate)
static void AudioDMACallback(u64 userdata, int cyclesLate)
{
int fields = VideoInterface::GetNumFields();
int period = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32 * fields);
int period = CPU_CORE_CLOCK / (AudioInterface::GetAIDSampleRate() * 4 / 32);
DSP::UpdateAudioDMA(); // Push audio to speakers.
CoreTiming::ScheduleEvent(period - cyclesLate, et_AudioDMA);
}
@ -242,7 +241,7 @@ void Init()
// FYI, WII_IPC_HLE_Interface::Update is also called in WII_IPCInterface::Write32
const int freq = 1500;
IPC_HLE_PERIOD = GetTicksPerSecond() / (freq * VideoInterface::GetNumFields());
IPC_HLE_PERIOD = GetTicksPerSecond() / freq;
}
// System internal sample rate is fixed at 32KHz * 4 (16bit Stereo) / 32 bytes DMA