With the current install of 1.2.14 on Ubuntu, and FreeBSD, if I do:
Int value = SDL_Init(SDL_INIT_AUDIO);
I get zero however if I turn off my sound-card* (firefox’s flash
plugin has this bug) I get a whole host of Alsa error messages, and a
return value of 0. The doc says if SDL_Iinit failed it will return -1.
Right if there is an Alsa fail I have to check stderr. Is there a
better way to do this?
I also have yet to check if this is the same behaviour in 1.3.
*To simulate no access to a sound card do this: /sbin/alsa force-
unload **
** you may have to reboot to get you sound card back online.
Kartik Thakore
Kartik ThakoreOn 10-Nov-09, at 8:35 AM, Kartik Thakore <@Kartik_Thakore> wrote:
With the current install of 1.2.14 on Ubuntu, and FreeBSD, if I do:
Int value = SDL_Init(SDL_INIT_AUDIO);
I get zero however if I turn off my sound-card* (firefox’s flash
plugin has this bug) I get a whole host of Alsa error messages, and
a return value of 0. The doc says if SDL_Iinit failed it will return
-1.
Right if there is an Alsa fail I have to check stderr. Is there a
better way to do this?
I also have yet to check if this is the same behaviour in 1.3.
*To simulate no access to a sound card do this: /sbin/alsa force-
unload **
** you may have to reboot to get you sound card back online.
Kartik Thakore