5
I’m using the API to emit some sounds, the problem is that in Firefox I can’t get around mp3, but how can I include other formatting in that code?
How can I add another font ogg for example?
I’m using API to call Audio like this:
var SomDeDigito = new Audio('sounds/keyboard.mp3');
var SomDeError = new Audio('sounds/erro.mp3');
var SomDeSky = new Audio('sounds/sky.mp3');
var SomDeEstrela = new Audio('sounds/estrela.mp3');
var SomDeSkyFall = new Audio('sounds/skyFall.mp3');
function digito(){
SomDeDigito.pause();
SomDeDigito.currentTime = 0;
SomDeDigito.play();
}
I really liked this lib, but it’s not very simple ): I’m looking for the best native alternative possible.
– Isvaldo Fernandes