Count output underflows (using paOutputUnderflow flag) under overloaded and normal conditions.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Count output underflows (using paOutputUnderflow flag) under overloaded and normal conditions.
- Author
- Ross Bencina rossb.nosp@m.@aud.nosp@m.iomul.nosp@m.ch.c.nosp@m.om
-
Phil Burk philb.nosp@m.urk@.nosp@m.softs.nosp@m.ynth.nosp@m..com
◆ FRAMES_PER_BUFFER
#define FRAMES_PER_BUFFER (512) |
◆ M_PI
#define M_PI (3.14159265) |
◆ MAX_LOAD
◆ MAX_SINES
◆ SAMPLE_RATE
#define SAMPLE_RATE (44100) |
◆ TWOPI
#define TWOPI (M_PI * 2.0) |
◆ paTestData
typedef struct paTestData paTestData |
◆ main()
References PaStreamParameters::channelCount, paTestData::countUnderflows, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, MAX_LOAD, MAX_SINES, paTestData::outputUnderflowCount, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetStreamCpuLoad(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paFloat32, paNoDevice, paNoError, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sineCount, and PaStreamParameters::suggestedLatency.