3 ms·
For audio synthesis one wants sample-accurate timing. At CD quality, a single sample is ~0.022 milliseconds. This is far beyond what's needed for games. However
by JonnieCache 14y ago
For audio synthesis one wants sample-accurate timing. At CD quality, a single sample is ~0.022 milliseconds. This is far beyond what's needed for games. However, looking at the API, the timing of events seems to be handled in native code, one simply schedules them in javascript. There are much cleverer people than me working on this, I should probably reserve judgement.
- wturner 14y agoWith conventional javascript the timing is complete nonsense. With the audio API you're right, timing is different and doesn't deal with the same millisecond convention as regular Javascript. Below is a really good talk I found and the gentleman speaking explains much of this better than I should attempt to: http://www.youtube.com/watch?v=hFsCG7v9Y4c http://www.youtube.com/watch?v=hFsCG7v9Y4c