mirror of
https://github.com/notwa/rc
synced 2024-11-05 04:19:03 -08:00
faster release, silence pushd/popd
This commit is contained in:
parent
35f5b84352
commit
58d91da249
1 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ _M_PRE_EMPH='equalizer=f=50.0:g=-10:width_type=o:w=4,equalizer=f=5000:g=+05:widt
|
||||||
_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.25|0.25:-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.10|0.10:-9/-9|0/-6.:3:4.5:-9'
|
_M_LIMIT='compand=0.000|0.000:0.10|0.10:-9/-9|0/-6.:3:4.5:-9'
|
||||||
_M_COMPRESS_SOFT='acompressor=threshold=0.01:ratio=1.667:attack=50:release=4000:makeup=6.7:knee=8:mix=0.67'
|
_M_COMPRESS_SOFT='acompressor=threshold=0.01:ratio=1.667:attack=50:release=3200:makeup=6.7:knee=8:mix=0.67'
|
||||||
_M_KILL="$_M_STEREO,$_M_PRE_EMPH,$_M_COMPRESS,$_M_POST_EMPH"
|
_M_KILL="$_M_STEREO,$_M_PRE_EMPH,$_M_COMPRESS,$_M_POST_EMPH"
|
||||||
|
|
||||||
getladspa() {
|
getladspa() {
|
||||||
|
@ -52,7 +52,7 @@ watchstream1() {
|
||||||
}
|
}
|
||||||
|
|
||||||
watchstream2() {
|
watchstream2() {
|
||||||
pushd ~/play
|
pushd ~/play >/dev/null
|
||||||
local url="$1"
|
local url="$1"
|
||||||
shift
|
shift
|
||||||
_mpv_flags
|
_mpv_flags
|
||||||
|
@ -65,7 +65,7 @@ watchstream2() {
|
||||||
livestreamer "$url" "$@" -p mpv $LIVESTREAMER_FLAGS -a \
|
livestreamer "$url" "$@" -p mpv $LIVESTREAMER_FLAGS -a \
|
||||||
"$REPLY {filename}"
|
"$REPLY {filename}"
|
||||||
fi
|
fi
|
||||||
popd
|
popd >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
alias watchstream=watchstream1
|
alias watchstream=watchstream1
|
||||||
|
@ -83,7 +83,7 @@ hitbox() {
|
||||||
}
|
}
|
||||||
|
|
||||||
yt() {
|
yt() {
|
||||||
pushd ~/play
|
pushd ~/play >/dev/null
|
||||||
local vid="$1"
|
local vid="$1"
|
||||||
# can't be bothered to use substrings since they differ across bash/zsh
|
# can't be bothered to use substrings since they differ across bash/zsh
|
||||||
if [[ "$(head -c4 <<< "$vid")" != "http" ]]; then
|
if [[ "$(head -c4 <<< "$vid")" != "http" ]]; then
|
||||||
|
@ -92,7 +92,7 @@ yt() {
|
||||||
mpv --af=lavfi="[$_M_PROCESS]" \
|
mpv --af=lavfi="[$_M_PROCESS]" \
|
||||||
--audio-samplerate=44100 --audio-format=s16 \
|
--audio-samplerate=44100 --audio-format=s16 \
|
||||||
--ytdl-format=22,best "$@" "$vid"
|
--ytdl-format=22,best "$@" "$vid"
|
||||||
popd
|
popd >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
_nn=
|
_nn=
|
||||||
|
|
Loading…
Reference in a new issue