1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 05:59:04 -08:00

lighter compression, use speaker compensation

This commit is contained in:
Connor Olding 2015-05-06 13:33:39 -07:00
parent 7d2a0e6920
commit e20a7755c6

View file

@ -51,6 +51,7 @@ export CXXFLAGS="$CFLAGS"
export LD_LIBRARY_PATH= # -n isn't an option in zsh's export export LD_LIBRARY_PATH= # -n isn't an option in zsh's export
export MAKEFLAGS="-j2" export MAKEFLAGS="-j2"
export VST_SDK_DIR="$HOME/src/vstsdk2.4" export VST_SDK_DIR="$HOME/src/vstsdk2.4"
export LADSPA_PATH="/usr/lib/ladspa"
export EDITOR='vim -p' export EDITOR='vim -p'
export GOPATH="$HOME/go" export GOPATH="$HOME/go"
@ -113,15 +114,18 @@ function trash() {
_M_STEREO='aformat=channel_layouts=stereo' _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_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_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_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.06|0.06:-12/-12|0/-9.:6:3.:-12' _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_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 if [[ "$(uname -n)" != "banshee" ]]; then
MPV_STREAM_FLAGS="--quiet --no-sub --vo=opengl:swapinterval=0" MPV_STREAM_FLAGS="--quiet --no-sub --vo=opengl:swapinterval=0"
else else
MPV_STREAM_FLAGS="--quiet --no-sub --af=lavfi=[$_M_KILL]" MPV_STREAM_FLAGS="--quiet --no-sub --af=lavfi=[$_M_KILL],$_M_SPEAKERS"
fi fi
LIVESTREAMER_FLAGS="" LIVESTREAMER_FLAGS=""