search for: phinc2

Displaying 1 result from an estimated 1 matches for "phinc2".

Did you mean: phinc1
2013 Jun 03
0
libao on Debian
...= ao_close(device) ) != 1 ) { fprintf(stderr,"Error in ao_close()\n") ; exit(EXIT_FAILURE) ; } ao_shutdown() ; return 0 ; } char *Sine(int sr, int nchan, double dur, int *nBytes) { double f1, f2 ; double db, A ; double ph1, ph2, phInc1, phInc2 ; int frames, i ; short *sbuffer ; char *cbuffer ; f1 = 1000 ; // frequency in Hertz f2 = 1.5 * f1 ; // perfect fifth higher ph1 = ph2 = 0 ; phInc1 = ( 2 * M_PI * f1 ) / sr ; // phase increments phInc2 = ( 2 * M_PI * f2 ) / sr ; db...