News for hackers. Stuff that matters.
Re:I don’t know who the Web Audio API is designed for by fenomas on Wednesday September 13, 2017 @11:08PM (#15244724)
I tend to think of the Web Audio API as the answer to the question: "how much of an audio API can you have if you stipulate that all user-specified code must run in the UI thread?".

Within that constraint I don't think it's a terrible API, but it's a big constraint and naturally raw access would be far preferable.

Re:I don’t know who the Web Audio API is designed for by symstym on Wednesday September 13, 2017 @11:36PM (#15244821)
Yes.. after I wrote my comment I was feeling a bit bad for sounding like I was just trashing the API. In a world where JS is slow and there is no worker thread machinery, yet you need low latency and flexible processing, the design makes more sense.

That being said, the AudioParam "automation" methods still make me want to cry.

Re:I don’t know who the Web Audio API is designed for by fenomas on Thursday September 14, 2017 @12:48AM (#15245085)
Yeah, AudioParam's refusal to interpolate anything makes it really hairy to work with.

Comments on the spec suggest that there was something really complicated about the "cancelAndHold" method (which I guess is still in NYI limbo), but I can't for the life of me figure out what it was.

Re:I don’t know who the Web Audio API is designed for by shermanyo on Thursday September 14, 2017 @12:41AM (#15245062)
"how much of an audio API can you have if you stipulate that all user-specified code must run in the UI thread?"

I just threw up in my mouth a little :/