#include #include #include #include #define PI 3.14159 #define SAMPLE_RATE 44100 #define N_CHANNELS 8 float f(float t) { const int f0 = 440; const int f1 = 880; return ( t*f1 ) + ( (1-t)*f0 ); } void callback(int chan, void *d) { bool *loop = d; *loop = false; printf("channel %d waves goodnight!\n", chan); } int main() { float data[SAMPLE_RATE]; for (long i=0; i