trzy / Supermodel

Official repository of the Sega Model 3 arcade emulator.
https://supermodel3.com
258 stars 37 forks source link

No audio on GNU/Linux (x86_64, latest stable SDL2 on ALSA) #90

Closed vanfanel closed 11 months ago

vanfanel commented 11 months ago

Hi there,

I have just built Supermodel for the first time on GNU/Linux (Debian 12, x86_64) and I get no sound at all. Seems like Supermodel uses SDL2 audio, and on my system SDL2 uses the ALSA backend (no Pulseaudio or other latency-introducing APIs, only direct ALSA audio for me).

Has Supermodel been tested on such an scenario? Maybe audio is currently broken on current GIT code somehow?

All my other SDL2 games (Scummvm, SDLPop, DoomRetro, VanillaConquer and a LONG list) do work fine, it's only Supermodel that's failing to produce any audio.

vanfanel commented 11 months ago

Ok, answering myself:

I need to pass -channels=2, then audio works. Supermodel tries to open 4 channel audio by default, which is not so common, is it?