Question about Linux SDL audio.

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

Post Reply
Bahamut_ZERO_Clue

Question about Linux SDL audio.

Post by Bahamut_ZERO_Clue »

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?
kode54
Zealot
Posts: 1140
Joined: Wed Jul 28, 2004 3:31 am
Contact:

Post by kode54 »

Whatever the system default is, I presume.
crache
New Member
Posts: 3
Joined: Thu Dec 16, 2004 8:23 pm
Contact:

Post by crache »

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.
ardnew
Rookie
Posts: 13
Joined: Thu Oct 06, 2005 7:18 am

Post by ardnew »

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.
creaothceann
Seen it all
Posts: 2302
Joined: Mon Jan 03, 2005 5:04 pm
Location: Germany
Contact:

Post by creaothceann »

SNES doesn't use MIDIs. :wink:
vSNES | Delphi 10 BPLs
bsnes launcher with recent files list
Post Reply