So I built a simple csound patch for CsoundUnity. Im looking for a way to send a message/string/bang/something that Unity can recognize, that will tell me when its done playing the sound. Im using transeg for the envelope, and ideally something will send a string/number once the envelope is done.
You can send a trigger signal over a channel and then set up some kind of polling system in Unity that listens for changes to the channel. @g_b just added support for channel callbacks, but it doesn’t look like they will continue to be supported in newer versions of Csound, so perhaps they should be avoided.