|
PortAudio 2.0
|
Simulate an output buffer underflow condition. Tests whether the stream can be stopped when underflowing buffers. More...
Data Structures | |
| struct | paTestData |
Macros | |
| #define | NUM_SECONDS (20) |
| #define | SAMPLE_RATE (44100) |
| #define | FRAMES_PER_BUFFER (2048) |
| #define | MSEC_PER_BUFFER ( (FRAMES_PER_BUFFER * 1000) / SAMPLE_RATE ) |
| #define | M_PI (3.14159265) |
| #define | TABLE_SIZE (200) |
Functions | |
| int | main (void) |
Simulate an output buffer underflow condition. Tests whether the stream can be stopped when underflowing buffers.
| #define FRAMES_PER_BUFFER (2048) |
Referenced by main().
| #define M_PI (3.14159265) |
Referenced by main().
| #define MSEC_PER_BUFFER ( (FRAMES_PER_BUFFER * 1000) / SAMPLE_RATE ) |
Referenced by main().
| #define NUM_SECONDS (20) |
| #define SAMPLE_RATE (44100) |
Referenced by main().
| #define TABLE_SIZE (200) |
Referenced by main().
| int main | ( | void | ) |
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, paNoDevice, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, paTestData::sleepTime, PaStreamParameters::suggestedLatency, and TABLE_SIZE.