Skip to content

Commit 100abec

Browse files
committed
Refactor audio option handling in start_mpv function for macOS
1 parent a7ab21b commit 100abec

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

shelldio.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,7 @@ start_mpv() {
105105
rm -f /tmp/mpv_socket
106106
fi
107107

108-
# Detect OS and set appropriate audio options
109-
if [[ "$OSTYPE" == "darwin"* ]]; then
110-
# macOS - use coreaudio driver
111-
mpv --no-video --input-ipc-server=/tmp/mpv_socket --volume=0 --ao=coreaudio "$stathmos_url" &>/dev/null &
112-
else
113-
# Linux/other Unix - default audio
114-
mpv --no-video --input-ipc-server=/tmp/mpv_socket --volume=0 "$stathmos_url" &>/dev/null &
115-
fi
108+
mpv --no-video --input-ipc-server=/tmp/mpv_socket --volume=0 "$stathmos_url" &>/dev/null &
116109
mpv_pid=$!
117110

118111
# Wait for the IPC socket to be ready with loading indicator

0 commit comments

Comments
 (0)