Here are the fixes required to allow compilation on macOS. Tested on an Apple MacBook M1 Pro running macOS Ventura v13.2.1 with GCC v12.2.0 (via Homebrew).
There is code to work with macports and homebrew but I've only tested homebrew.
This also includes a temporary workaround for silent audio on macOS. I've tried troubleshooting but I can't figure it out. src/pc/audio/audio_sdl2.c uses SDL_MixAudioFormat to adjust the volume based on the configOverallVolume setting. The workaround is to bypass the mixer and volume adjustment (only for macOS).
Here are the fixes required to allow compilation on macOS. Tested on an Apple MacBook M1 Pro running macOS Ventura v13.2.1 with GCC v12.2.0 (via Homebrew).
There is code to work with macports and homebrew but I've only tested homebrew.
This also includes a temporary workaround for silent audio on macOS. I've tried troubleshooting but I can't figure it out. src/pc/audio/audio_sdl2.c uses SDL_MixAudioFormat to adjust the volume based on the configOverallVolume setting. The workaround is to bypass the mixer and volume adjustment (only for macOS).