On Tue, 24 Feb 2004, Jaroslav Kysela wrote:

> On Mon, 23 Feb 2004, Kirk Bauer wrote:
> 
> > I have a M-Audio Delta 410 and I seem to have it working in 4xstereo
> > mode.  Now I'm trying to refine my technique, as right now the only way
> > I know to send MP3s to a specific device (or channel) is:
> > 
> > mpg123 -s test.mp3 | aplay --device=channel2 --channels=2 -f cd 
> > --buffer-time=1000000 -
> > 
> > But the problem is that aplay takes up a huge amount of CPU time.  Here
> > is output from 'top' with two such processes running on different
> > channels:
> > 
> >   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
> >  4229 root      15   0  1876 1616  1476 R    32.6  0.4   0:38 aplay
> >  4235 root      15   0  1876 1616  1476 R    30.6  0.4   0:38 aplay
> >  4228 root       0 -20  3500 3500  3304 S <   5.5  0.9   0:06 mpg123
> >  4234 root       0 -20  3436 3436  3240 S <   4.7  0.8   0:05 mpg123
> > 
> > Note that each 'aplay' is taking over 30% of my CPU time while the
> > actual MP3 decoder is only taking around 5%.
> 
> What's your config? Which plugins do you use?

Here is my config, which I am not at all attached to (found it on the
web), but it does seem to allow 4xstereo with multiple sources going
into the same output stream if I want to.  I don't know what plugins but
I hope either the config file or the lsmod output (below) will answer
that for me!

pcm.dmixer {
   type dmix
   ipc_key 1024 # must be unique!
   slave {
      pcm "hw:0,0" # you cannot use a "plug" device here, darn.
      period_time 0
      period_size 1024 # must be power of 2
      buffer_size 6553 # dito. It
      #format "S32_LE"
      #periods 128 # dito.
      #rate 8000 # with rate 8000 you *will* hear,
      # if ossmix is used
   }
}

pcm.ice1712 {
   type hw
   card 0
   device 0
}

ctl.ice1712 {
   type hw
   card 0
   device 0
}

# adcdac 1&2
pcm.channel1 {
   type plug
   ttable.0.0 1
   ttable.1.1 1
   slave.pcm "dmixer"
}

# adcdac 3&4
pcm.channel2 {
   type plug
   ttable.0.2 1
   ttable.1.3 1
   slave.pcm "dmixer"
}

#adcdac 5&6
pcm.channel3 {
   type plug
   ttable.0.4 1
   ttable.1.5 1
   slave.pcm "dmixer"
}

# adcdac 7&8
pcm.channel4 {
   type plug
   ttable.0.6 1
   ttable.1.7 1
   slave.pcm "dmixer"
}

##############################################################################

#lsmod | grep snd
snd-pcm-oss            44676   0  (autoclean)
snd-mixer-oss          16560   0  (autoclean) [snd-pcm-oss]
snd-seq-midi            5280   0  (unused)
snd-seq-midi-event      6048   0  [snd-seq-midi]
snd-seq                47312   0  [snd-seq-midi snd-seq-midi-event]
snd-ice1712            50444   0
snd-cs8427              9288   0  [snd-ice1712]
snd-pcm                85824   0  [snd-pcm-oss snd-ice1712]
snd-timer              19812   0  [snd-seq snd-pcm]
snd-ac97-codec         58860   0  [snd-ice1712]
snd-mpu401-uart         5360   0  [snd-ice1712]
snd-rawmidi            18848   0  [snd-seq-midi snd-mpu401-uart]
snd-seq-device          6284   0  [snd-seq-midi snd-seq snd-rawmidi]
snd-ice17xx-ak4xxx      2744   0  [snd-ice1712]
snd-ak4xxx-adda         5664   0  [snd-ice1712 snd-ice17xx-ak4xxx]
snd-i2c                 4644   0  [snd-ice1712 snd-cs8427]
snd                    46180   0  [snd-pcm-oss snd-mixer-oss
snd-seq-midi snd-seq-midi-event snd-seq snd-ice1712 snd-cs8427 snd-pcm
snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device
snd-ak4xxx-adda snd-i2c]
snd-page-alloc         10196   0  [snd-pcm]
soundcore               6468   5  [snd bttv]




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to