patest_underflow.c File Reference
Simulate an output buffer underflow condition. Tests whether the stream can be stopped when underflowing buffers.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Detailed Description
Simulate an output buffer underflow condition. Tests whether the stream can be stopped when underflowing buffers.
- Author:
- Ross Bencina <rossb@audiomulch.com>
-
Phil Burk <philburk@softsynth.com>
Define Documentation
#define FRAMES_PER_BUFFER (2048) |
#define MSEC_PER_BUFFER ( (FRAMES_PER_BUFFER * 1000) / SAMPLE_RATE ) |
#define SAMPLE_RATE (44100) |
Function Documentation
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, MSEC_PER_BUFFER, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), 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::sleepTime, PaStreamParameters::suggestedLatency, and TABLE_SIZE.