fabiensanglard/Another-World-Bytecode-Interpreter — Issue #2: game hangs under linux while opening audio
Author: kazzmir
Created: 2011-12-23 19:08:33+00:00
State: open

SDL_OpenAudio will hang under linux with pulseaudio when AUDIO_S8 is passed as the format. See this SDL bug I opened for reference (although it seems unlikely to be fixed in 1.2.x): http://bugzilla.libsdl.org/show_bug.cgi?id=1283

If I change the format to AUDIO_U8 the game can run successfully but the audio predictably sounds bad. This could be solved by using a hook to the audio which simple adds 0x8000 thus converting between S8 to U8, but would have to be done on all platforms (unless #ifdef magic is ok, but I would rather avoid that).