mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 10:05:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
audio_format="$(uci -q get "spotifyd.config.audio_format")"
|
||||
[ -n "$audio_format" ] || exit 0
|
||||
|
||||
case "$audio_format" in
|
||||
"F32"|"S16"|"S24"|"S32")
|
||||
audio_format="$(echo "$audio_format" | tr "[A-Z]" "[a-z]")"
|
||||
;;
|
||||
"S24_3")
|
||||
audio_format="s24-3"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "$audio_format" ]; then
|
||||
uci -q set "spotifyd.config.audio_format"="$audio_format"
|
||||
uci -q commit "spotifyd"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user