|
PortAudio 2.0
|
Test 8 bit data: play a sine wave for several seconds. More...
Data Structures | |
| struct | paTestData |
Macros | |
| #define | NUM_SECONDS (8) |
| #define | SAMPLE_RATE (44100) |
| #define | TABLE_SIZE (200) |
| #define | TEST_UNSIGNED (0) |
| #define | TEST_FORMAT paInt8 |
| #define | SILENCE ((sample_t)0x00) |
| #define | M_PI (3.14159265) |
Typedefs | |
| typedef char | sample_t |
Functions | |
| int | main (void) |
Test 8 bit data: play a sine wave for several seconds.
| #define M_PI (3.14159265) |
Referenced by main().
| #define NUM_SECONDS (8) |
Referenced by main().
| #define SAMPLE_RATE (44100) |
Referenced by main().
| #define TABLE_SIZE (200) |
Referenced by main().
| #define TEST_UNSIGNED (0) |
| typedef char sample_t |
| int main | ( | void | ) |
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, paTestData::framesToGo, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetStreamTime(), Pa_Initialize(), Pa_IsStreamActive(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paNoDevice, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, SILENCE, paTestData::sine, PaStreamParameters::suggestedLatency, TABLE_SIZE, and TEST_FORMAT.