try/catch in scsynth
nathan-PB1wun9k+p9Wk0Htik3J/[email protected]
| Newsgroups | gmane.comp.audio.supercollider.devel |
|---|---|
| Message-ID | <[email protected]> |
hi list, while investigating https://github.com/supercollider/supercollider/issues/3563, i found that there are try/catch statements in the main audio callbacks for scsynth. two examples: https://github.com/supercollider/supercollider/blob/4146f83117433e4e413ab878951f4a981a98aed6/server/scsynth/SC_Jack.cpp#L447 https://github.com/supercollider/supercollider/blob/4146f83117433e4e413ab878951f4a981a98aed6/server/scsynth/SC_PortAudio.cpp#L181 and there are some throw statements in the SC guts: https://github.com/supercollider/supercollider/blob/develop/common/SC_AllocPool.cpp#L391 i'm still a novice to real-time safety in programming, but i have heard that C++ exceptions are not safe for real-time audio. should we be concerned about this? nathan _______________________________________________ sc-dev mailing list info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/