Skip to content

Commit

Permalink
(hopefully) final code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
v1bh475u committed Aug 31, 2024
1 parent f3179a5 commit 91f7868
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ void APU::test()
void APU::initializeWriteHandler()
{
if (mMap)
mMap->setAudioWriteHandler([this](Word address)
{ this->onMemoryWrite(address); });
mMap->setAudioWriteHandler([this](Word address) { this->onMemoryWrite(address); });
}

void APU::writeByte(Word address, Byte value)
Expand Down Expand Up @@ -133,7 +132,6 @@ void APU::writeByte(Word address, Byte value)

Byte APU::readByte(Word address)
{
printf("Address: %04X\n", address);
if (address >= 0xFF10 && address <= 0xFF14)
{
return channel1->readByte(address);
Expand Down Expand Up @@ -183,7 +181,6 @@ void APU::stepAPU(int cycles)

if (frameSequencerCounter >= 8192)
{
printf("FrameSquencer start\n");
// update envelope clocks and length timers
channel1->run();
channel2->run();
Expand All @@ -204,7 +201,6 @@ void APU::stepAPU(int cycles)
{
audioRegisterUpdate(addr, AudioWrite);
}
printf("FramerSequencer ends\n");
}
}

Expand Down

0 comments on commit 91f7868

Please sign in to comment.