3 ms·
This seems to be heavily depended on the file types you use. I have some experiments with many different, short, sound files running with <audio> just fine - in
by phoboslab 16y ago
This seems to be heavily depended on the file types you use. I have some experiments with many different, short, sound files running with <audio> just fine - in Chrome, FF and Opera at least.
Ogg Vorbis and (of course WAV) works quite nice, MP3 doesn't. For Safari, maybe AAC would be the right choice. Still, as you said, the <audio> implementation is quite buggy at times. But I have no doubt it will get better!
- bd 16y agoYes, a good point. I confirm, also in my experience problems are very dependent on particular sound files. Some work perfectly fine, some make troubles. And it's not just encoding, it seems to be dependent also on what's inside the sound file like a particular waveform or length. For me the worst were a sequences of very short sounds (fractions of second) played in a direct response to rapid successive keypresses (keydown-keydown-keydown should make pew-pew-pew). No matter what I did, there was always at least one browser with some showstopping bug.