Skip to content

Part #7 - Emulator no sound on Macos Ventura v13.6.6 #56

@rafaeldriveme1

Description

@rafaeldriveme1

Hello @OneLoneCoder, thank you for your videos. :)

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.

image

Command to compile:

LIBRARIES = -framework OpenGL -framework GLUT -framework Carbon -lpng -framework OpenAL

EXE_DEBUG = ./bin/debug
EXE_TESTS = ./bin/tests
FILES_TO_LINKED = Mapper.cpp Bus.cpp Mapper_000.cpp Mapper_001.cpp Mapper_002.cpp Mapper_003.cpp Mapper_004.cpp Mapper_066.cpp olc6502.cpp olc2C02.cpp olc2A03.cpp Cartridge.cpp

clang++ -arch x86_64 -std=c++17 -mmacosx-version-min=10.15 -Wall $(LIBRARIES) olcNes_Sounds1.cpp ${FILES_TO_LINKED} -o $(EXE_DEBUG) -v

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?

Tks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions