I&#39;ve tried this now from 2 angles, through pulseaudio and through Alsa<br><br><br>in pacmd<br>&nbsp;load-module module-ladspa-sink sink_name=ladspa_out master=alsa_output.pci_1102_2_sound_card_0_alsa_playback_0 plugin=fast_lookahead_limiter_1913&nbsp; label=fastLookaheadLimiter&nbsp; control=-1,-5,2,0,,,,,<br>
<br>_____<br>gives the error <br>D: module-ladspa-sink.c: Module: fast_lookahead_limiter_1913<br>D: module-ladspa-sink.c: Label: fastLookaheadLimiter<br>D: module-ladspa-sink.c: Unique ID: 1913<br>D: module-ladspa-sink.c: Name: Fast Lookahead limiter<br>
D: module-ladspa-sink.c: Maker: Steve Harris &lt;<a href="mailto:steve@plugin.org.uk">steve@plugin.org.uk</a>&gt;<br>D: module-ladspa-sink.c: Copyright: GPL<br>D: module-ladspa-sink.c: Ignored control output port &quot;Attenuation (dB)&quot;.<br>
E: module-ladspa-sink.c: Found audio input port on plugin we cannot handle: Input 1<br>E: module.c: Failed to load&nbsp; module &quot;module-ladspa-sink&quot; (argument: &quot;sink_name=ladspa_out master=alsa_output.pci_1102_2_sound_card_0_alsa_playback_0 plugin=fast_lookahead_limiter_1913&nbsp; label=fastLookaheadLimiter&nbsp; control=-1,-5,2,0,,,,,&quot;): initialization failed.<br>
__________________________________________________<br>I&#39;ve tried all kinds of values for the control= string. <br><br><br>In Alsa I tried a .asoundrc file almost identical to the one given on some web pages (I must not have used the right Google search terms before) <br>
<br>This is what it looks like right now - I&#39;ve been tweaking it to get it to work right.<br><br>pcm.limit {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type ladspa<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; slave.pcm &quot;plughw:0,0&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #slave.pcm &quot;default&quot;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path &quot;/usr/lib/ladspa&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plugins [<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; label fastLookaheadLimiter<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; input {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #InputGain(Db) -20 -&gt; +20 ; Limit (db) -20 -&gt; 0 ; Release time (s) 0.01 -&gt; 2<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inputgain 0; limit -5; release 0.1; Attenuation 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; controls [ 0 -5 0.1 0 ]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp; ]<br>}<br><br><br>AND HERE IS what this gives me <br><br><br>$ mplayer mp3file.mp3&nbsp; -ao alsa:device=limit<br>
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team<br>CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 47, Stepping: 2)<br>CPUflags:&nbsp; MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1<br>Compiled with runtime CPU detection.<br>
<br>Playing 063_Unwavering_Samadhi-a.mp3.<br>Audio file file format detected.<br>==========================================================================<br>Forced audio codec: mad<br>Opening audio decoder: [libmad] libmad mpeg audio decoder<br>
AUDIO: 44100 Hz, 1 ch, s16le, 64.0 kbit/9.07% (ratio: 8000-&gt;88200)<br>Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)<br>==========================================================================<br>[AO_ALSA] alsa-lib: pcm_ladspa.c:1271:(snd_pcm_ladspa_parse_controls) Unable to find an control port (3)<br>
[AO_ALSA] Playback open error: Invalid argument<br>Could not open/initialize audio device -&gt; no sound.<br>Audio: no sound<br>Video: no video<br><br><br>Exiting... (End of file)<br><br><br><br>Any further hints would be appreciated. <br>
<br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 4:48 AM, Sanjeev Sharma <span dir="ltr">&lt;<a href="mailto:throwit1@gmail.com">throwit1@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
OK, I&#39;ll start playing with these<br><br><br><br>ls /usr/lib/ladspa/ | grep limit<br>fast_lookahead_limiter_1913.so<br>hard_limiter_1413.so<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 3:41 AM, David Kågedal <span dir="ltr">&lt;<a href="mailto:davidk@lysator.liu.se" target="_blank">davidk@lysator.liu.se</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>
</div>You could use LADSPA to insert a limiter or compressor between the<br>
source and the output.<br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>