Earlier quoted context omitted.
> Yes I do agree but my point is that if any exception is being thrown for the sake of being handled then your Audio code is bad. thank god ! then we both agree. > Generally your Audio loop should encounter no errors at all (it should be a pure process) and audio handlers should never lock mutexes yet I have seen my fair share of them in the wild. > My only point is that throwing an exception when there is no handler…
> and audio handlers should never lock mutexes yet I have seen my fair share of them in the wild. They are incorrect. Only bounded-time synchronization primitives can be used. E.g. lock-free queues. > every thread or event loop should always have a catch-all handler at top level. Two things. 1) There should be no reason for a properly coded real time audio loop to have a top level handler because exceptions should no…
yes, my point is that incorrect code exists in the wild, that's the world we have to live in.
> properly coded real time audio loop
most things aren't properly coded, and yet still useful