PortAudio
2.0
|
Play a different sine wave on each channel. More...
Data Structures | |
struct | paTestData |
Macros | |
#define | SAMPLE_RATE (44100) |
#define | FRAMES_PER_BUFFER (128) |
#define | FREQ_INCR (300.0 / SAMPLE_RATE) |
#define | MAX_CHANNELS (64) |
#define | M_PI (3.14159265) |
Functions | |
int | test (short interleaved) |
int | main (void) |
Play a different sine wave on each channel.
#define FRAMES_PER_BUFFER (128) |
Referenced by test().
#define FREQ_INCR (300.0 / SAMPLE_RATE) |
#define M_PI (3.14159265) |
#define MAX_CHANNELS (64) |
Referenced by test().
#define SAMPLE_RATE (44100) |
Referenced by test().
int main | ( | void | ) |
References Pa_GetErrorText(), Pa_Initialize(), Pa_Terminate(), paNoError, and test().
int test | ( | short | interleaved | ) |
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::interleaved, MAX_CHANNELS, PaDeviceInfo::maxOutputChannels, paTestData::numChannels, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_OpenStream(), Pa_StartStream(), Pa_StopStream(), paClipOff, paFloat32, paInvalidDevice, paNoDevice, paNoError, paNonInterleaved, paTestData::phases, SAMPLE_RATE, PaStreamParameters::sampleFormat, and PaStreamParameters::suggestedLatency.
Referenced by main(), PaQa_RunInputOnly(), PaQa_RunLoopbackFullDuplex(), and PaQa_RunLoopbackHalfDuplex().