Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] interfaces lib building in windows with MSVC

Date2005-10-28 21:12
FromMichael Gogins
SubjectRe: [Cs-dev] interfaces lib building in windows with MSVC
I did not know you could do this. However, I think an API for pausing and stopping is simpler for a programmer to understand and use.

Thanks,
Mike

-----Original Message-----
From: Anthony Kozar 
Sent: Oct 28, 2005 3:46 PM
To: New Csound Developer list 
Subject: Re: [Cs-dev] interfaces lib building in windows with MSVC

This should be done, I think, using the csoundYield callback.

The MacOS 9 front end already has a "transport" for pausing, stopping, and
resuming a performance.  It sets a yield callback to check for events and
when a click on the pause button is detected, it does not return to Csound
until the user clicks Play or Stop.  If the user clicks Stop, the yield
callback returns an error code which causes csoundPerform to end the
performance.

This all works fairly well (and has worked for nearly ten years).

Anthony Kozar
anthonykozar AT sbcglobal DOT net
http://akozar.spymac.net/

Michael Gogins wrote on 10/28/05 11:43 AM:

> I mean the API calls Csound::Perform (usually from a separate thread). Then,
> for example, the user decides he or she has heard enough, so the user clicks
> on a Stop button which calls Csound::Stop() and the Perform() call returns
> immediately. I have code for this in CppSound::perform and CppSound::stop, but
> I want to push this code, or some other code that does the same thing, down
> into the CSOUND object.



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net