clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
167 stars 41 forks source link

Game fails to start without sound #104

Closed queria closed 13 years ago

queria commented 13 years ago

When trying to start game when sound card is occupied (in my case by audio player) game fails to start.

I think it's not good behavior (no other game/app i use has this problem). No need to do sound mixing if i didn't does not have dmix set up. I would only expect the game will start without any sound/music.

I'm on linux using alsa, sdl-mixer in version 1.2.11-r1 (gentoo).

Error with which the game ends directly after startup is:

$ ./flare 
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Error during Mix_OpenAudio: No available audio device
pennomi commented 13 years ago

See also issue #10.

queria commented 13 years ago

Ok, sorry i missed it, so this is a duplicate.

clintbellanger commented 13 years ago

Side note: duplicate of Issue #10

This should be a straight-forward fix, but will require a thorough update of the code. I think this is the approach: