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"
Detailed Description
Hear the latency caused by big buffers. Play a sine wave and change frequency based on letter input.
- Author:
- Phil Burk <philburk@softsynth.com>, and Darren Gibbs
Define Documentation
#define CalcPhaseIncrement |
( |
|
freq | ) |
((freq)/SAMPLE_RATE) |
#define FRAMES_PER_BUFFER (64) |
#define M_PI (3.14159265) |
#define MIN_FREQ (100.0f) |
#define OUTPUT_DEVICE (Pa_GetDefaultOutputDevice()) |
#define SAMPLE_RATE (44100) |
Function Documentation
float LookupSine |
( |
paTestData * |
data, |
|
|
float |
phase |
|
) |
| |