[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Multiple soundcards
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Multiple soundcards
- From: Ari Krupnik <ari@xxxxxxxx>
- Date: Wed, 09 Aug 2006 14:52:21 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Wed, 09 Aug 2006 17:39:54 -0400
- In-reply-to: <20060529120039.1b23cd8f@mail.sicherlich.org> (Bernhard Georg's message of "Mon, 29 May 2006 14:00:39 +0200")
- References: <20060529120039.1b23cd8f@mail.sicherlich.org>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
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.