Either of these scriptcalls will play an mp3 (instead of an ogg).
option one
option two
However, I do not yet know which corresponding scriptcall(s) will pause and/or stop the mp3 file once it is playing, and I don't know what scriptcalls will adjust the volume either. If you happen to know how to pause, stop or adjust the volume in this situation please share your expertise! Thank You!
option one
Code:
var audio = new Audio("audio/BGM/test.mp3");
audio.play();
option two
Code:
var audio = document.createElement("audio");
audio.src = "audio/BGM/test.mp3";
audio.play();
However, I do not yet know which corresponding scriptcall(s) will pause and/or stop the mp3 file once it is playing, and I don't know what scriptcalls will adjust the volume either. If you happen to know how to pause, stop or adjust the volume in this situation please share your expertise! Thank You!