You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Part #7 - Emulator no sound on Macos Ventura v13.6.6 #56
I arrived at the last video in your series of videos on the development of the NES emulator, but when I run the emulator after it is compiled, the roms of several games the image appears, but the sound does not work and it does not show any error in the terminal, I think This would be because macos does not support the sound libraries that were added to the project.
Note: Your Sound example from the SoundDemo.cpp files also does not work, without errors in the terminal, it just opens the program screen and the sound is muted.
Is there any alternative to make the sound work in the emulator on macos? Anybody know?
Activity
GiacomoGarbin commentedon Jun 27, 2025
After adding the OpenAL framework (as you did by updating the makefile:
-framework OpenAL), you need to defineUSE_OPENAL, for example by changing:Finally, you need to update the include path:
This works for me and I hope it works for you too.