I assume you set all the constants that depend on ksmps? Quoting Rory Walsh : > What consequences would changing the size of ksmps between calls to > csoundPerformKsmps have on things? I just tried a simple test there > and didn't notice any problems. I added a csoundSetKsmps() method to > the API and ran the example below with both real-time input/output and > straight synthesis examples. Am I right in saying that so long as it's > done between calls to performKsmps it should be ok? What say ye? > > #include "csound.h" > #include /* required for randomize() and random() */ > > int main(int argc, char **argv) > { > // Create Csound. > void *csound = csoundCreate(0); > int ksmps = 64; > int ran = 0; > > int result = csoundCompile(csound, argc, argv); > if(!result) { > while(csoundPerformKsmps(csound) == 0){ > ran = rand()%4 + 1; > csoundSetKsmps(csound, ksmps+ran); > printf("current ksmps size = %d", csoundGetKsmps(csound)); > } > csoundCleanup(csound); > } > // Destroy Csound. > csoundDestroy(csound); > return result; > } > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net