double sineWave(float* buf, int samples, double phase, double freq);
void sineWave2Tone(float* buf, int samples, 
                        double phase1, double phase2, 
                        double freq1, double freq2,
                        double* updated_phase1, double* updated_phase2);

