#include <stdio.h>#include <math.h>#include "portaudio.h"Data Structures | |
| struct | paTestData |
Defines | |
| #define | OUTPUT_DEVICE (Pa_GetDefaultOutputDeviceID()) |
| #define | NUM_SECONDS (8) |
| #define | SLEEP_DUR (800) |
| #define | SAMPLE_RATE (44100) |
| #define | FRAMES_PER_BUFFER (256) |
| #define | NUM_BUFFERS (0) |
| #define | MIN_FREQ (100.0f) |
| #define | MAX_FREQ (4000.0f) |
| #define | FREQ_SCALAR (1.00002f) |
| #define | CalcPhaseIncrement(freq) (freq/SAMPLE_RATE) |
| #define | M_PI (3.14159265) |
| #define | TABLE_SIZE (400) |
Functions | |
| float | LookupSine (paTestData *data, float phase) |
| int | main (void) |
| #define CalcPhaseIncrement | ( | freq | ) | (freq/SAMPLE_RATE) |
| #define FRAMES_PER_BUFFER (256) |
| #define FREQ_SCALAR (1.00002f) |
| #define M_PI (3.14159265) |
| #define MAX_FREQ (4000.0f) |
| #define MIN_FREQ (100.0f) |
| #define NUM_BUFFERS (0) |
| #define NUM_SECONDS (8) |
| #define OUTPUT_DEVICE (Pa_GetDefaultOutputDeviceID()) |
| #define SAMPLE_RATE (44100) |
| #define SLEEP_DUR (800) |
| #define TABLE_SIZE (400) |
| float LookupSine | ( | paTestData * | data, | |
| float | phase | |||
| ) |
| int main | ( | void | ) |
1.4.7