Hear the latency caused by big buffers. Play a sine wave and change frequency based on letter input.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Hear the latency caused by big buffers. Play a sine wave and change frequency based on letter input.
- Author
- Phil Burk philb.nosp@m.urk@.nosp@m.softs.nosp@m.ynth.nosp@m..com, and Darren Gibbs
#define CalcPhaseIncrement |
( |
|
freq | ) |
((freq)/SAMPLE_RATE) |
#define FRAMES_PER_BUFFER (64) |
#define M_PI (3.14159265) |
#define MIN_FREQ (100.0f) |
#define SAMPLE_RATE (44100) |
float LookupSine |
( |
paTestData * |
data, |
|
|
float |
phase |
|
) |
| |