slitaz-doc-wiki-data diff pages/en/guides/alsaequal.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pages/en/guides/alsaequal.txt	Sat Feb 26 12:17:18 2011 +0000
     1.3 @@ -0,0 +1,84 @@
     1.4 +====== Alsaequal ======
     1.5 +
     1.6 +===== Installation (cooking only) =====
     1.7 +
     1.8 +First download alsaequal:
     1.9 +
    1.10 +<code># tazpkg get-install alsaequal</code>
    1.11 +
    1.12 +Then create a /home/tux/.asoundrc file:
    1.13 +
    1.14 +<file>
    1.15 +ctl.equal {
    1.16 +  type equal;
    1.17 +}
    1.18 +
    1.19 +pcm.plugequal {
    1.20 +  type equal;
    1.21 +  # Modify the line below if you don't
    1.22 +  # want to use sound card 0.
    1.23 +  # slave.pcm "plughw:0,0";
    1.24 +  # or if you want to use with multiple applications output to dmix
    1.25 +  slave.pcm "plug:dmix"
    1.26 +}
    1.27 +
    1.28 +pcm.equal {
    1.29 +  # Or if you want the equalizer to be your
    1.30 +  # default soundcard uncomment the following
    1.31 +  # line and comment the above line.
    1.32 +# pcm.!default {
    1.33 +  type plug;
    1.34 +  slave.pcm plugequal;
    1.35 +}
    1.36 +</file>
    1.37 +
    1.38 +===== mpg123 =====
    1.39 +
    1.40 +Change (cd) into your music directory and then run:
    1.41 +
    1.42 +<code>$ mpg123 -a equal *</code>
    1.43 +
    1.44 +Or
    1.45 +
    1.46 +<code>$ mpg123 -a equal track1</code>
    1.47 +
    1.48 +Now you should be able to open up a separate terminal and use:
    1.49 +
    1.50 +<code>$ alsamixer -D equal</code>
    1.51 +
    1.52 +===== mpd =====
    1.53 +
    1.54 +Just edit the audio_output section of your /etc/mpd.conf:
    1.55 +
    1.56 +<file>
    1.57 +audio_output {
    1.58 +	type		"alsa"
    1.59 +	name		"equal"
    1.60 +	device		"plug:plugequal"
    1.61 +##	format		"44100:16:2"	# optional
    1.62 +##	mixer_device	"default"	# optional
    1.63 +##	mixer_control	"PCM"		# optional
    1.64 +##	mixer_index	"0"		# optional
    1.65 +}
    1.66 +</file>
    1.67 +
    1.68 +And start/restart mpd and you should be able to use //$ alsamixer -D equal//
    1.69 +
    1.70 +===== moc =====
    1.71 +
    1.72 +Copy the config.example file in /usr/share/doc/moc to your ~/.moc folder:
    1.73 +
    1.74 +<code>$ cp /usr/share/doc/moc/config.example ~/.moc/config</code>
    1.75 +
    1.76 +Then change the alsa output device line to: 
    1.77 +
    1.78 +<file>
    1.79 +# ALSA output device
    1.80 +AlsaDevice    = equal
    1.81 +</file>		
    1.82 +
    1.83 +And then start/restart moc.
    1.84 +
    1.85 +===== References =====
    1.86 +
    1.87 +http://www.thedigitalmachine.net/alsaequal.html
    1.88 \ No newline at end of file