Open sofakng opened 1 year ago
I've found the problem...
For some reason, SDL_MixAudioFormat isn't working: https://github.com/MorsGames/sm64plus/blob/12c22e56afa51cc5899ad1cb065b276becb3eece/src/pc/audio/audio_sdl2.c#L48
If you replace the entire function with the same code from the sm64ex project then it works:
static void audio_sdl_play(const uint8_t *buf, size_t len) {
if (audio_sdl_buffered() < 6000) {
// Don't fill the audio buffer too much in case this happens
SDL_QueueAudio(dev, buf, len);
}
}
I'm trying to figure out why the audio mixer isn't working though... (it outputs silence)
Is anybody able to compile this for macOS (Apple Silicon, M1) and have working sound?
I've tried clang, gcc-12 (via homebrew), main branch, dev branch, etc.
I'm able to compile a executable and it runs the game, but there is no music or sound...