PortAudio 2.0
|
Play a sine wave for several seconds using the blocking API (Pa_WriteStream()) More...
Macros | |
#define | NUM_SECONDS (5) |
#define | SAMPLE_RATE (44100) |
#define | CHANNELS (2) /* Set to 1 or 2. */ |
#define | FRAMES_PER_BUFFER (1024) |
#define | M_PI (3.14159265) |
#define | TABLE_SIZE (200) |
Functions | |
int | main (void) |
Play a sine wave for several seconds using the blocking API (Pa_WriteStream())
#define CHANNELS (2) /* Set to 1 or 2. */ |
Referenced by main().
#define FRAMES_PER_BUFFER (1024) |
Referenced by main().
#define M_PI (3.14159265) |
Referenced by main().
#define NUM_SECONDS (5) |
Referenced by main().
#define SAMPLE_RATE (44100) |
Referenced by main().
#define TABLE_SIZE (200) |
Referenced by main().
int main | ( | void | ) |
References buffer, PaStreamParameters::channelCount, CHANNELS, PaStreamParameters::device, PaHostErrorInfo::errorCode, PaHostErrorInfo::errorText, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, PaHostErrorInfo::hostApiType, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetErrorText(), Pa_GetLastHostErrorInfo(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), Pa_WriteStream(), paClipOff, paFloat32, paNoDevice, paNoError, paUnanticipatedHostError, SAMPLE_RATE, PaStreamParameters::sampleFormat, PaStreamParameters::suggestedLatency, and TABLE_SIZE.