function play_sound_1(){
var audio1 = new Audio
audio1.src = '../audio/1.mp3';
audio1.autoplay = true;
}
const audioList = {};
function _play(key) {
if (audioList[key]) {
audioList[key].autoplay = true;
} else {
var audio1 = new Audio
audio1.src = '../audio/1.mp3';
audio1.autoplay = true;
audioList[key] = audio1;
}
}
function _off(key) {
if (audioList[key]) {
audioList[key].autoplay = false;
}
}
function _switch(key) {
if (audioList[key]) {
audioList[key].autoplay = !audioList[key].autoplay;
}
}