case "$1" in start) # Get the current audio profile. defaultprofile="$(batocera-audio get-profile)" # Get the current audio device. defaultaudio="$(batocera-audio get)" # Set the audio device to HDMI-2. batocera-audio set HDMI-2 # Set the default "auto" audio profile. batocera-audio set-profile auto # Unmute the audio device. batocera-audio setSystemVolume unmute # Set audio level to 69. batocera-audio setSystemVolume 69 # Test the audio device with Mallet.wav batocera-audio test ;; stop) # Toggle the audio mute. batocera-audio setSystemVolume mute-toggle