projects/aaron/crtsine.cpp
// tick() callback function
// called automatically when the system needs a new buffer of audio samples
tick() callback function
called automatically when the system needs a new buffer of audio samples
tick () callback function called automatically when the system needs a new buffer of audio samples
int tick( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
		double streamTime, RtAudioStreamStatus status, void *dataPointer)
{
	SineWave *sine= (SineWave *) dataPointer;
	register StkFloat *samples=(StkFloat *) outputBuffer;
	for (unsigned int i=0; i<nBufferFrames; i++)
		*samples++ =sine->tick();
	return 0;
}
int tick ( void * outputBuffer , void * inputBuffer , unsigned int nBufferFrames , double streamTime , RtAudioStreamStatus status , void * dataPointer ) { SineWave * sine = ( SineWave * ) dataPointer ; register StkFloat * samples = ( StkFloat * ) outputBuffer ; for ( unsigned int i = 0 ; i < nBufferFrames ; i ++ ) * samples ++ = sine -> tick ( ) ; return 0 ; }
tick() callback function
called automatically when the system needs a new buffer of audio samples
tick () callback function called automatically when the system needs a new buffer of audio samples