when I run aplay in another terminal, I get this error in the aserver 
terminal :
[root@nicolas root]# aserver local
aserver: pcm_params.c:295: snd_pcm_hw_param_set_first: Assertion `err >= 0' 
failed.
Abandon (core dumped)

And in the aplay terminal, after one second :
[root@nicolas root]# aplay -D remote_left /home/nico/track02.cdda.wav
Playing WAVE '/home/nico/track02.cdda.wav' : Signed 16 bit Little Endian, 
Rate 44100 Hz, Stereo
aplay: set_params:716: Broken configuration for this PCM: no configurations 
available

I have pasted what you gave to me in my .asoundrc file.
May I do an error ?


Le Vendredi 23 Novembre 2001 10:44, Jaroslav Kysela a écrit :
> On Fri, 23 Nov 2001, Nicolas DEVERGE wrote:
> > Hi,
> > I have installed the latest Alsa drivers on my linux distribution.
> > I have a big problem : I can not play simultaneously several soundfiles
> > on the same sound card (with have 10 output channels). I use aplay for
> > playing on specific channel but I can not start two instances of aplay in
> > the same time, the second wait for the end of the first for starting.
> > My question is : is aserver a tool for playing simultaneously sound files
> > on the same device, like esound or arts ? if so, where can I fond some
>
> Yes and no. We're missing the mix plugin, but the share plugin allows to
> merge more streams into one device, but the channels are not mixed. Try
> this configuration:
>
> server.local {
>   host localhost
>   socket /tmp/alsa
> }
>
> pcm.shared_left {
>   type share
>   slave.pcm "plughw:0,0,0"
>   bindings {
>     0 0
>   }
> }
>
> pcm.shared_right {
>   type share
>   slave.pcm "plughw:0,0,0"
>   bindings {
>     0 1
>   }
> }
>
> pcm.remote_left {
>   type shm
>   server local
>   pcm "plug:shared_left"
> }
>
> pcm.remote_right {
>   type shm
>   server local
>   pcm "plug:shared_right"
> }
>
> Run aserver and type:
>
> aplay -D remote_left <a.wav>
> aplay -D remote_right <b.wav>
>
> You should hear simultaneously two wav files. The first from left and the
> second from right speaker.
>
>                                               Jaroslav
>
> -----
> Jaroslav Kysela <[EMAIL PROTECTED]>
> SuSE Linux    http://www.suse.com
> ALSA Project  http://www.alsa-project.org

_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to