Enhance play.sh script for volume adjustment
This commit includes improvements to the 'play.sh' script: - Added a 'while' loop for volume 100, ensuring continuous playback with the specified volume. - Changed the volume increment loop to start from volume 20 and increase by 10 in each iteration. - Improved comments and formatting in the script. The changes aim to enhance the script's functionality by addressing volume-related issues and providing better clarity in the script structure.
This commit is contained in:
parent
fd6dd6f9bf
commit
6b20f31fc2
4
play.sh
4
play.sh
@ -21,6 +21,10 @@ for ((volume = 20; volume <= 100; volume += 10)); do
|
||||
|
||||
# Wait for the completion of the current mpv process before starting the next one
|
||||
wait
|
||||
|
||||
while [[ volume == 100 ]]; do
|
||||
/data/data/com.termux/files/usr/bin/mpv --replaygain=track --volume="$volume" /data/scripts/your-new-morning-alarm.ogg &
|
||||
done
|
||||
done
|
||||
|
||||
# End of the script
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user