Re: [Cs-dev] instr 0
Date | 2006-09-17 11:00 |
From | Michael Gogins |
Subject | Re: [Cs-dev] instr 0 |
Could you explain in more detail? Or give a code snippet? Regards, Mike -----Original Message----- >From: matt ingalls |
Date | 2006-09-17 20:04 |
From | matt ingalls |
Subject | Re: [Cs-dev] instr 0 |
Attachments | None None |
This is how i have always done it from when i first made Csound a dylib, ( however the newer csoundStop() may be an easier way to do the same thing? ) You can look at the MyDocument.m file in the CsoundX frontend source in cvs for an example. i call csoundPerformBuffer() from a separate thread. In my application-level thread, the user can hit the "stop" button which then sets a mQuitRequested boolean. During the csoundPerformBuffer() call, Yield() is called from CsoundLib, which i return !mQuitRequested. When Yield() returns false, csound stops the render, and will then return a "done" code from csoundPerformBuffer(). After i receive a "done" return, i call csoundDestroy(). On Sep 17, 2006, at 3:00 AM, Michael Gogins wrote:
|