Can anyone point me in the right direction as to how to prevent this error from happening?
My application plays a sound whenever a SYNCPOINT is reached in another soundfile which is playing in a loop. I’ve created all the FMOD stuff (including the SYNCPOINT callback) in the same class as the Windows Form but the error seems to always occur if I am constantly updating the UI. (i.e. I update the sound position in the timer_tick event similar to the "playsound" example provided.)
How can I prevent the delegate from being collected by the GC? KeepAlive(object) doesn’t seem to work… If anyone has had a success in using FMOD in this manner with C#, how can I do it?
- JVarela asked 6 years ago
- You must login to post comments