Question about Linux SDL audio.
Moderator: ZSNES Mods
Question about Linux SDL audio.
Not to be side tracked with the MinGW conversion which is still ongoing, I am curious to what exact audio library is being used by the SDL library under Linux/X11. Is SDL being told to use ALSA, OSS, or OpenAL for ZSnes's audio?
I registered just to answer (had an account on the old forums though) I personally used spdif out and only works with alsa so I had to get things to work with alsa. SDL seems to use OSS by default, but if you make a script to run zsnes you can change this. Here is an example of mine:
#!/bin/bash
export SDL_AUDIODRIVER=alsa
export AUDIODEV=hw:0,2
zsnes -w
I assume you can replace alsa with arts and oss.
#!/bin/bash
export SDL_AUDIODRIVER=alsa
export AUDIODEV=hw:0,2
zsnes -w
I assume you can replace alsa with arts and oss.
Had to make an account as well, just to reply to this one.
Thanks a lot crache! This seems to be the only problem I have been having, but no longer...
I was getting zero sound output, and considering ALSA defaults to use the 'dummy' sound device enabled in my kernel (and through trial-and-error, finally got a working asound.conf to default my device to my real sound device, not the dummy, for things specifically invoking ALSA) I was figuring SDL was contacting ALSA correctly, but was using the incorrect hardware device.
Guess if I had just done a little snooping, I could have found the hardware variable. But, now that ZSNES will contact hw:2,0 (in my case), I can dance to all the SNES MIDIs my heart desires!
Thanks again, ardnew.
Thanks a lot crache! This seems to be the only problem I have been having, but no longer...

I was getting zero sound output, and considering ALSA defaults to use the 'dummy' sound device enabled in my kernel (and through trial-and-error, finally got a working asound.conf to default my device to my real sound device, not the dummy, for things specifically invoking ALSA) I was figuring SDL was contacting ALSA correctly, but was using the incorrect hardware device.
Guess if I had just done a little snooping, I could have found the hardware variable. But, now that ZSNES will contact hw:2,0 (in my case), I can dance to all the SNES MIDIs my heart desires!
Thanks again, ardnew.
-
- Seen it all
- Posts: 2302
- Joined: Mon Jan 03, 2005 5:04 pm
- Location: Germany
- Contact: