audio.duration is not trustworthy?
I have a JS program that plays an audio until the very end.
I noticed than audio.duration slightly changes at the end of the audio, seemingly to have 0 <= audio.currentTime <= audio.duration
always hold true :
I can’t put a button to stop all sounds in my website, and when I try, all my Javascript code stops working
I’m making a soundboard dupe of YouTube in my classes of webdesign and I can’t figure out how to code a button to stop all the sounds playing. I think it has something to do with the way I coded the function that makes the sounds play, but I really don’t know how to change it in a way that makes it work.
What do I use for “data” in the AudioData constructor (JavaScript)
AudioData Reference
How would I write data to an Audio File?
So I’ve been trying to make a DAW in the browser and I’ve got everything done except for exporting files. How would I go about writing data for an audio file?