Add upstream API changes to the implementation that were missing from the source tarball for whatever reason.

This commit is contained in:
clobber
2017-03-09 00:26:12 -06:00
parent 0faf10b35f
commit 3e7c96650f
+3 -3
View File
@@ -131,8 +131,8 @@ const char* const binaryName = "mGBA";
- (void)setupEmulation
{
blip_set_rates(core->getAudioChannel(core, 0), GBA_ARM7TDMI_FREQUENCY, 32768);
blip_set_rates(core->getAudioChannel(core, 1), GBA_ARM7TDMI_FREQUENCY, 32768);
blip_set_rates(core->getAudioChannel(core, 0), core->frequency(core), 32768);
blip_set_rates(core->getAudioChannel(core, 1), core->frequency(core), 32768);
}
#pragma mark - Video
@@ -178,7 +178,7 @@ const char* const binaryName = "mGBA";
- (NSTimeInterval)frameInterval
{
return GBA_ARM7TDMI_FREQUENCY / (double) VIDEO_TOTAL_LENGTH;
return core->frequency(core) / (double) core->frameCycles(core);
}
#pragma mark - Audio