Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 5fcfcb7517038d1f44ab4e478e6e61fa > files > 483

csound-doc-6.10.0-1.mga7.noarch.rpm

#include "csound.hpp"
#include "csPerfThread.hpp"

int useThreads = true;

int main(int argc, char *argv[])
{
    Csound csound;
    csound.Compile(argc,argv);
    csound.Start();
    if (useThreads) {
        CsoundPerformanceThread performanceThread(csound.GetCsound());
        performanceThread.Play(); 
        performanceThread.Join();  
    } else {
        while (csound.PerformKsmps() == 0) {}
    }
 }