Re: [Alsa-user] definition default pcm device by enviroment variable

2006-04-11 Thread Clemens Ladisch
(please don't top-post) Sergey Kolosov wrote: > But I have not understood, whether it is possible to carry out a > choice default sound device by enviroment variable (maybe through > plugins). Tell your program to use device "plughw" instead of "default": ALSA_PCM_DEVICE=2 mpg321 -o alsa09 -a pl

Re: [Alsa-user] definition default pcm device by enviroment variable

2006-04-11 Thread Sergey Kolosov
Thanks for the answer. But I have not understood, whether it is possible to carry out a choice default sound device by enviroment variable (maybe through plugins). If it you probably could give an example.On 4/10/06, Clemens Ladisch <[EMAIL PROTECTED]> wrote: Sergey Kolosov wrote:> I need to  defi

Re: [Alsa-user] definition default pcm device by enviroment variable

2006-04-10 Thread Clemens Ladisch
Sergey Kolosov wrote: > I need to definie the default pcm device by enviroment variabe. > $ ALSA_PCM_DEVICE=2 mpg123 -v test.wav > > But sound play on first pcm device. The "default" device of your card always uses the first device. Only the "hw" and "plughw" devices are affected by ALSA_PCM_DEV

[Alsa-user] definition default pcm device by enviroment variable

2006-04-09 Thread Sergey Kolosov
I need to  definie the default pcm device by enviroment variabe. I make it: [EMAIL PROTECTED]:~/work/inpro/alsa$ aplay -l List of PLAYBACK Hardware Devices card 0: CK804 [NVidia CK804], device 0: Intel ICH [NVidia CK804]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: CK804 [NVidi