I don't know how to do this but one way could be <br><br>send all of pulseaudio's outputs to sox. Sox applies the compander effect<br><br> sox -q -t wav $WAV_PIPE -t ao pulse compand 0.001,1 -inf,-inf,-25,-inf,-25,-15,0,-13 2 -90 .1 <br>
<br>This command <br>1. drops all sound quieter than -25 db<br>2. sounds from -25db to 0 db (max sound level) get squished down into the range -15db to -13db. <br><br>there are lots of problems with this, though. Sox keys its playback off the first sample. if any subsequent samples are at different rates, they'll play faster and higher pitched, or slower and lower-pitched <br>
<br><div class="gmail_quote">On Mon, Nov 24, 2008 at 5:18 AM, Michal Sawicz <span dir="ltr"><<a href="mailto:michal@sawicz.net">michal@sawicz.net</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;">
Dnia 2008-11-23, nie o godzinie 23:41 +0000, Colin Guthrie pisze:<br>
<div class="Ih2E3d">> You just need to set the hardware volume of the sink. You can do this<br>
> in<br>
> pavucontrol under the device, not the stream.<br>
<br>
</div>I think you misunderstood, what you can set in the volume control is,<br>
actually, amplification. It always multiplies the 'incoming' volume by a<br>
set amount.<br>
<br>
What Sanjeev meant, is that he would like to limit the outgoing volume<br>
regardless of the input volume, so actually he meant compression.<br>
<font color="#888888"><br>
--<br>
Michal Sawicz <<a href="mailto:michal@sawicz.net">michal@sawicz.net</a>><br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</div></div></blockquote></div><br>