[ecasound] script for playing multiple mp3s

New Message Reply Date view Thread view Subject view Author view Other groups

Subject: [ecasound] script for playing multiple mp3s
From: Kai Vehmanen (kaiv@wakkanet.fi)
Date: Sun Jun 17 2001 - 08:42:08 EEST


This might be useful to some...

---------- Forwarded message ----------
Date: Sun, 17 Jun 2001 08:40:58 +0300 (EEST)
From: Kai Vehmanen <kaiv@wakkanet.fi>
To: alsa-user@alsa-project.org
Subject: Re: [Alsa-user] mgp123 and alsa

On Sat, 16 Jun 2001, radmax wrote:

> is there a way to send multipule mpg123 streams to different channels?
> ie. mix a stereo song to one channel left and mixing a different song
> for the other right channel.

Here's a script ('play_mp3s'):

--cut--
#!/bin/sh
ecasound -a:bus1 -i $1 -erm:1 -eac:0,2 \
         -a:bus2 -i $2 -erm:2 -eac:0,1 \
         -a:bus1,bus2 -o loop,1 \
         -a:bus3 -i loop,1 -o alsa,pcm_name
--cut--

... then just issue "./play_mp3s file1.mp3 file2.mp3". If don't have a
~/.asoundrc, you can replace 'alsa,pcm_name' with either 'alsahw,0,0' or
'/dev/dsp'.

-- 
 http://www.eca.cx
 Audio software for Linux!

-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request@wakkanet.fi>.


New Message Reply Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Jun 17 2001 - 08:42:13 EEST