-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vibhatsu/signals n slots #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice changes overall, just left some coding style nits.
src/audio.cpp
Outdated
void APU::initializeWriteHandler() | ||
{ | ||
if (mMap) | ||
mMap->setAduioWriteHandler([this](Word address) { this->onWrite(address); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling mistake here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
give more descriptive name to onWrite ()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about onMemoryWrite()
src/audio.cpp
Outdated
@@ -207,8 +202,7 @@ void APU::stepAPU(int cycles) | |||
Word address[] = { 0xFF19, 0xFF1E, 0xFF23, 0xFF26 }; | |||
for (auto addr : address) | |||
{ | |||
Byte reg = readByte(addr); | |||
mMap->writeBackMemory(addr, reg); | |||
writeUpdate(addr, AUDIO_WRITE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same better naming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about audioRegisterUpdate
?
No description provided.