olofson / audiality2

A realtime scripted modular audio engine for video games and musical applications.
http://audiality.org/
zlib License
80 stars 5 forks source link

Processing order of late events is undefined #337

Open olofson opened 6 years ago

olofson commented 6 years ago

It seems like the "late API message" mechanism (which just clamps the timestamp to the start of the current frame) results in undefined processing order, and that's why we're having problems like https://github.com/olofson/koboredux/issues/401 and https://github.com/olofson/koboredux/issues/512.

olofson commented 6 years ago

I don't think this matters, actually - or rather, avoiding this issue does not solve the problem. After some experiments with this, I've concluded that the aforementioned Kobo Redux problems can occur even if messages arrive in order.

It seems like the problem is with creating or finding the A2_TNEWVOICE placeholder handles, which are to serve as event queues for voices not yet instantiated.

olofson commented 6 years ago

Turns out the Kobo Redux problems were eliminated by avoiding dropped messages due to API buffer overflows, so I'm leaving this for the next release.