Small APU fixes

This commit is contained in:
Souryo 2014-06-22 22:35:44 -04:00
parent 8c079e5ca1
commit 62ddf5e8e5
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,8 @@ IAudioDevice* APU::AudioDevice = nullptr;
APU::APU()
{
APU::Instance = this;
blargg_err_t error = _buf.sample_rate(44100);
if(error) {
//report_error(error);

View file

@ -98,7 +98,7 @@ bool Console::RunTest(uint8_t *expectedResult)
Timer timer;
uint8_t maxWait = 30;
while(true) {
_cpu->Exec();
_apu->Exec(_cpu->Exec());
_ppu->Exec();
if(timer.GetElapsedMS() > 100) {