diff --git a/home/-shrc b/home/-shrc index 5b183f8..fd96b69 100644 --- a/home/-shrc +++ b/home/-shrc @@ -51,6 +51,7 @@ export CXXFLAGS="$CFLAGS" export LD_LIBRARY_PATH= # -n isn't an option in zsh's export export MAKEFLAGS="-j2" export VST_SDK_DIR="$HOME/src/vstsdk2.4" +export LADSPA_PATH="/usr/lib/ladspa" export EDITOR='vim -p' export GOPATH="$HOME/go" @@ -113,15 +114,18 @@ function trash() { _M_STEREO='aformat=channel_layouts=stereo' _M_PRE_EMPH='equalizer=f=50.0:g=-10:width_type=o:w=4,equalizer=f=5000:g=+05:width_type=o:w=4' _M_POST_EMPH='equalizer=f=50.0:g=+10:width_type=o:w=4,equalizer=f=5000:g=-05:width_type=o:w=4' -_M_COMPRESS='compand=0.001|0.001:0.15|0.15:-42/-42|0/-21:6:18:-30:0.001' -_M_LIMIT='compand=0.000|0.000:0.06|0.06:-12/-12|0/-9.:6:3.:-12' +_M_COMPRESS='compand=0.001|0.001:0.25|0.25:-42/-42|0/-21:6:18:-30:0.001' +_M_LIMIT='compand=0.000|0.000:0.10|0.10:-9/-9|0/-6.:3:4.5:-9' _M_KILL="$_M_STEREO,$_M_PRE_EMPH,$_M_COMPRESS,$_M_POST_EMPH,$_M_LIMIT" -_M_SPEAKERS='lowpass=f=1000:p=1,lowpass=f=4000:p=1,equalizer=f=800:g=-4:width_type=o:w=1,volume=1.6' + +crap_speakers='crap_eq_const_T420' +[ -e "/usr/lib/ladspa/${crap_speakers}-ladspa.so" ] \ + && _M_SPEAKERS="ladspa=file=${crap_speakers}-ladspa.so:label=$crap_speakers" if [[ "$(uname -n)" != "banshee" ]]; then MPV_STREAM_FLAGS="--quiet --no-sub --vo=opengl:swapinterval=0" else - MPV_STREAM_FLAGS="--quiet --no-sub --af=lavfi=[$_M_KILL]" + MPV_STREAM_FLAGS="--quiet --no-sub --af=lavfi=[$_M_KILL],$_M_SPEAKERS" fi LIVESTREAMER_FLAGS=""