patest_sine_time.c File Reference
Play a sine wave for several seconds, pausing in the middle. Uses the Pa_GetStreamTime() call.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
#include "pa_util.h"
Detailed Description
Play a sine wave for several seconds, pausing in the middle. Uses the Pa_GetStreamTime() call.
- Author:
- Ross Bencina <rossb@audiomulch.com>
-
Phil Burk <philburk@softsynth.com>
Define Documentation
#define FRAMES_PER_BUFFER (64) |
#define SAMPLE_RATE (44100) |
#define TWOPI (M_PI * 2.0) |
Function Documentation
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, NUM_SECONDS, paTestData::outTime, 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, and PaStreamParameters::suggestedLatency.