MOC and alsaequal

Hi,

I was trying to hook moc with the alsaequal, nice real-time adjustable equalizer plugin for ALSA

http://www.thedigitalmachine.net/alsaequal.html

but I started to read and I realized that I need more than to hours to understand all this things and how to modify the .asoundrc... probably it's not so difficult but I'm a greenhorn on this... so I didn't even tried to be honest, but if some has done already the trick and could share it would be fantastic. if not I'll put it in my never-ending TODO list and one day I'll publish the HOWTO.

Cheers,

Bradomyn

If the topic is still relevant, then see below:

1. Alsaequal depends on CAPS LADSPA. Also may need to install "ALSA Development headers and alsa-lib" known as libasound2.
2. After all you need to create a configuration file /etc/asound.сonf or .asoundrc in your home directory as follows:
ctl.equal {
type equal;
}
pcm.plugequal {
type equal;
slave.pcm "plug:dmix";
}
pcm.equal {
type plug;
slave.pcm plugequal;
}

3. MOC also provides an optional configuration file. Copy it to your ~/.moc directory:
cp /usr/share/doc/moc/config.example ~/.moc/config
Then change the alsa output device line to:
# ALSA output device
AlsaDevice = equal

4. Now you can start MOC player and use alsaequal by console:
alsamixer -D equal
5. Enjoy!

Also you can change Alsaequal on any LADSPA plugin, like mbeq from the swh-plugin package. How to install it, see SWH Plugins Home Page. And after replace your configuration files for ALSA drivers (/etc/asound.сonf or .asoundrc) with this:

ctl.equal {
type equal;
library "/usr/lib/ladspa/mbeq_1197.so";
module "mbeq";
}
pcm.plugequal {
type equal;
slave.pcm "plug:dmix";
library "/usr/lib/ladspa/mbeq_1197.so";
module "mbeq";
}
pcm.equal {
type plug;
slave.pcm plugequal;
}

Note: Be sure that you use the correct path of libraries and configuration files...

sorry for my english...