Hi list,

I am trying to use a LADSPA plugin (the multiband equalizer - 1197) 
system-wide via the /etc/asound.conf file. I want to use my second 
sound card for the output. 

This is my current asound.conf
        defaults.pcm.rate_converter "samplerate_best"
        pcm.!default {
        type plug
        slave.pcm {
        type dmix
        ipc_key 1024
        slave {
                pcm "hw:1,0"
        #       period_size 1024
        #       buffer_size 16384 
                rate 48000
                }
        }
        }

Although this correctly outputs the sound to the second card, I have to 
use the LADSPA plugin within each player if it supports it which I want 
to avoid.

I modified the asound.conf to the following as suggested in some Amarok 
wiki which always gives the sound to my first soundcard...

defaults.pcm.rate_converter "samplerate_best"
pcm.ladspa {
  type ladspa
  slave.pcm "plughw:1,0";
# rate 48000;
  path "/usr/lib/ladspa";
  plugins [
    {
#     label mbeq_1197
      id 1197
      input {
#       controls [ 6.8 2.5 0.0 -2.0 -3.0 -3.0 -4.0 -5.0 -4.0 -3.0 0.0 
3.0 6.0 9.6 13.0 768.0 ]
        controls [ 6 2 0 -2 -3 -3 -4 -5 -4 -3 0 3 6 9 13 ]
      }
    }
 ]
}

pcm.!default {
#pcm.multi_eq {
  type plug
  slave.pcm ladspa
}

Then I tried the following which gives me an error with aplay;

defaults.pcm.rate_converter "samplerate_best"
pcm.ladspa {
# pcm
  type ladspa
  slave.pcm "plughw:1,0";
  rate 48000;
  path "/usr/lib/ladspa";
  plugins [
    {
#     label mbeq_1197
      id 1197
      input {
#       controls [ 6.8 2.5 0.0 -2.0 -3.0 -3.0 -4.0 -5.0 -4.0 -3.0 0.0 
3.0 6.0 9.6 13.0 768.0 ]
        controls [ 6 2 0 -2 -3 -3 -4 -5 -4 -3 0 3 6 9 13 768 ]
      }
    }
 ]
}

#pcm.!default {
pcm.multi_eq {
  type plug
  slave.pcm ladspa
}

[EMAIL PROTECTED]:~$ aplay -Dplug:multi_eq /music/one.mp3 
ALSA lib pcm_ladspa.c:1771:(_snd_pcm_ladspa_open) Unknown field rate
aplay: main:545: audio open error: Invalid argument

The LADSPA plugins are fine, they are in the path specified and working 
correctly.

What am I doing wrong?

TIA
AM


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to