Skip to content
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

Merged
merged 8 commits into from
Aug 30, 2024

Conversation

Demigod345
Copy link

No description provided.

Copy link
Author

@Demigod345 Demigod345 left a 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 Show resolved Hide resolved
src/audio.h Outdated Show resolved Hide resolved
src/audio.cpp Outdated Show resolved Hide resolved
src/audio.cpp Outdated
void APU::initializeWriteHandler()
{
if (mMap)
mMap->setAduioWriteHandler([this](Word address) { this->onWrite(address); });
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling mistake here

Copy link
Author

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 ()

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);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same better naming

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about audioRegisterUpdate?

src/audio.h Outdated Show resolved Hide resolved
src/audio.h Show resolved Hide resolved
src/mmap.cpp Outdated Show resolved Hide resolved
src/mmap.h Outdated Show resolved Hide resolved
@v1bh475u v1bh475u merged commit 2c3ef03 into vibhatsu/APU-modularising Aug 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants