|
PortAudio 2.0
|
Flexible test for recording or playing N channels with optional callback sleep. More...
Data Structures | |
| struct | paTestData |
Macros | |
| #define | SAMPLE_RATE (44100) |
| #define | FRAMES_PER_BUFFER (128) |
| #define | DEFAULT_NUM_SECONDS (5) |
| #define | DEFAULT_NUM_CHANNELS (2) |
| #define | MAX_CHANNELS (64) |
| #define | BASE_FREQUENCY (220.0) |
| #define | FREQUENCY_RATIO (9.0 / 8.0) |
| #define | SECONDS_BEFORE_SLEEP (2) |
| #define | M_PI (3.14159265358979323846) |
Functions | |
| int | main (int argc, char **argv) |
Flexible test for recording or playing N channels with optional callback sleep.
| #define BASE_FREQUENCY (220.0) |
| #define DEFAULT_NUM_CHANNELS (2) |
Referenced by main().
| #define DEFAULT_NUM_SECONDS (5) |
Referenced by main().
| #define FRAMES_PER_BUFFER (128) |
Referenced by main().
| #define FREQUENCY_RATIO (9.0 / 8.0) |
| #define M_PI (3.14159265358979323846) |
| #define MAX_CHANNELS (64) |
Referenced by main().
| #define SAMPLE_RATE (44100) |
Referenced by main().
| #define SECONDS_BEFORE_SLEEP (2) |
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
References paTestData::callbackCount, PaStreamParameters::channelCount, DEFAULT_NUM_CHANNELS, DEFAULT_NUM_SECONDS, PaDeviceInfo::defaultLowInputLatency, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::isSleeping, MAX_CHANNELS, PaDeviceInfo::name, paTestData::numInputChannels, paTestData::numOutputChannels, Pa_CloseStream(), Pa_GetDefaultInputDevice(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paFloat32, paInternalError, paInvalidDevice, paNoDevice, paNoError, paTestData::peakAmplitudes, paTestData::phases, SAMPLE_RATE, PaStreamParameters::sampleFormat, SECONDS_BEFORE_SLEEP, paTestData::sleepMillis, and PaStreamParameters::suggestedLatency.