I've tried this now from 2 angles, through pulseaudio and through Alsa<br><br><br>in pacmd<br> 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 label=fastLookaheadLimiter 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 <<a href="mailto:steve@plugin.org.uk">steve@plugin.org.uk</a>><br>D: module-ladspa-sink.c: Copyright: GPL<br>D: module-ladspa-sink.c: Ignored control output port "Attenuation (dB)".<br>
E: module-ladspa-sink.c: Found audio input port on plugin we cannot handle: Input 1<br>E: module.c: Failed to load module "module-ladspa-sink" (argument: "sink_name=ladspa_out master=alsa_output.pci_1102_2_sound_card_0_alsa_playback_0 plugin=fast_lookahead_limiter_1913 label=fastLookaheadLimiter control=-1,-5,2,0,,,,,"): initialization failed.<br>
__________________________________________________<br>I'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've been tweaking it to get it to work right.<br><br>pcm.limit {<br> type ladspa<br> slave.pcm "plughw:0,0";<br> #slave.pcm "default";<br>
path "/usr/lib/ladspa";<br> plugins [<br> {<br> label fastLookaheadLimiter<br> input {<br> #InputGain(Db) -20 -> +20 ; Limit (db) -20 -> 0 ; Release time (s) 0.01 -> 2<br>
inputgain 0; limit -5; release 0.1; Attenuation 0;<br> controls [ 0 -5 0.1 0 ]<br> }<br> }<br> ]<br>}<br><br><br>AND HERE IS what this gives me <br><br><br>$ mplayer mp3file.mp3 -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: 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->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 -> 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"><<a href="mailto:throwit1@gmail.com">throwit1@gmail.com</a>></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'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"><<a href="mailto:davidk@lysator.liu.se" target="_blank">davidk@lysator.liu.se</a>></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>