[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Multiple soundcards



Bernhard Georg <g@xxxxxxxxxxxxxx> writes:

> Hi all, hi Pete and Ari!
> Is using those environment variables supported for pygame-1.7.1release?
> Ari, can you please post here if you have been successfull with using two soundcards?
> Gogo.
>
> From: Peter Shinners [mailto:pete@xxxxxxxxxxxx]
>
> On Sun, 2006-05-28 at 11:32 -0700, Ari Krupnik wrote:
>> I have two soundcards on my system. Is there a way in PyGame to
>> specify which card should play a sound?
>
> You'll use SDL environment variables, depending on the platform you are
> using. Take a look here for a full list.
>
> http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fenvvars
> (scroll down to the "Audio" section)
>
> It looks like AUDIODEV and SDL_PATH_DSP would be a start?

Problem solved. Alsa doesn't use /dev/dsp* as audio device names. To
make it use the second audio device on my system, all I had to do was
export AUDIODEV=hw:1,0

Ari.

-- 
Elections only count as free and trials as fair if you can lose money
betting on the outcome.