mmitch / gbsplay

gameboy sound player
https://mmitch.github.io/gbsplay/
Other
98 stars 20 forks source link

Sound drivers on macOS? #36

Closed mmitch closed 3 years ago

mmitch commented 3 years ago

Our automated builds using GitHub Actions ensure that gbsplay compiles on macOS: https://github.com/mmitch/gbsplay/actions?query=workflow%3A%22macOS+Build%22

configure currently only detects these plugouts on macOS that don't actually play any sound:

While gbsplay compiles, not having a useful sound output won't make it very useful.

We need somebody with knowledge of macOS and sound drivers that can tell us what to do:

mmitch commented 3 years ago

I have looked very shortly at other Gameboy emulators on macOS: Both Gearboy and SameBoy run on macOS and both use SDL. As SDL also runs on Linux and Windows, this should be a viable target for a new sound driver, we could like test 90% of it on our normal development platforms.

Also Gearboy mentioned Gb_Snd_Emu, a Game Boy PAPU sound chip emulator, which might be worth a look for us. But on the other hand: If we just use an existing sound engine, where is the fun in that ;-)

mmitch commented 3 years ago

Pull request https://github.com/mmitch/gbsplay/pull/38 contains an SDL sound driver. According to the build pipeline it compiles on macOS (using brew install sdl2). It is not really tested because nobody has a Mac around here, but with that pull request we at least provide one (untested) real sound output under macOS. Mission accomplished.

mmitch commented 3 years ago

The SDL driver has been merged to master, so I'm closing this issue.