Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

game hangs under linux while opening audio #2

Closed
kazzmir opened this issue Dec 23, 2011 · 1 comment
Closed

game hangs under linux while opening audio #2

kazzmir opened this issue Dec 23, 2011 · 1 comment

Comments

@kazzmir
Copy link
Contributor

kazzmir commented Dec 23, 2011

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).

@tycho tycho mentioned this issue Mar 3, 2012
@bb010g
Copy link

bb010g commented Apr 2, 2014

Fixed by #4; requesting closure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants