PortAudio
2.0
|
Test opening streams with different buffer sizes. More...
Data Structures | |
struct | paTestData |
Macros | |
#define | NUM_SECONDS (3) |
#define | SAMPLE_RATE (44100) |
#define | M_PI (3.14159265) |
#define | TABLE_SIZE (200) |
#define | BUFFER_TABLE 14 |
Functions | |
PaError | TestOnce (int buffersize, PaDeviceIndex) |
int | main (int argc, char **args) |
Variables | |
long | buffer_table [] = {paFramesPerBufferUnspecified,16,32,64,128,200,256,500,512,600,723,1000,1024,2345} |
Test opening streams with different buffer sizes.
#define BUFFER_TABLE 14 |
#define M_PI (3.14159265) |
Referenced by TestOnce().
#define NUM_SECONDS (3) |
Referenced by TestOnce().
#define SAMPLE_RATE (44100) |
Referenced by TestOnce().
#define TABLE_SIZE (200) |
Referenced by TestOnce().
int main | ( | int | argc, |
char ** | args | ||
) |
PaError TestOnce | ( | int | buffersize, |
PaDeviceIndex | device | ||
) |
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetLastHostErrorInfo(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_Terminate(), paClipOff, paDitherOff, paInt16, paNoDevice, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sampsToGo, paTestData::sine, PaStreamParameters::suggestedLatency, and TABLE_SIZE.
long buffer_table[] = {paFramesPerBufferUnspecified,16,32,64,128,200,256,500,512,600,723,1000,1024,2345} |