patest_timing.c File Reference
Play a sine wave for several seconds, and spits out a ton of timing info while it's at it. Based on patet_sine.c.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Detailed Description
Play a sine wave for several seconds, and spits out a ton of timing info while it's at it. Based on patet_sine.c.
- Author:
- Bjorn Roche
-
Ross Bencina <rossb@audiomulch.com>
-
Phil Burk <philburk@softsynth.com>
Define Documentation
#define FRAMES_PER_BUFFER (64) |
#define SAMPLE_RATE (44100) |
Function Documentation
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetStreamTime(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paFloat32, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, paTestData::start, paTestData::stream, PaStreamParameters::suggestedLatency, and TABLE_SIZE.