js/alarm-player.js
/**
 * Plays an audio source.
 *
 * @param audioSource The audio source to be played.
 * @param loop Boolean whether the audio source is to be looped or not.
 * */
Plays an audio source.
@param audioSource The audio source to be played.
@param loop Boolean whether the audio source is to be looped or not.
Plays an audio source . @param audioSource The audio source to be played . @param loop Boolean whether the audio source is to be looped or not .
function playAudio(audioSource, loop = false) {
    if (!muted) {
        audio = new Audio(audioSource)
        audio.loop = loop
        audio.play()
    }
}
function playAudio ( audioSource , loop = false ) { if ( ! muted ) { audio = new Audio ( audioSource ) audio . loop = loop audio . play ( ) } }
Plays an audio source.
Plays an audio source .