| 
    PortAudio 2.0
    
   | 
 
Test whether all queued samples are played when Pa_StopStream() is used with a callback or read/write stream, or when the callback returns paComplete. More...
Data Structures | |
| struct | TestData | 
Macros | |
| #define | SAMPLE_RATE (44100) | 
| #define | FRAMES_PER_BUFFER (1024) | 
| #define | TONE_SECONDS (1) /* long tone */ | 
| #define | TONE_FADE_SECONDS (.04) /* fades at start and end of long tone */ | 
| #define | GAP_SECONDS (.25) /* gap between long tone and blip */ | 
| #define | BLIP_SECONDS (.035) /* short blip */ | 
| #define | NUM_REPEATS (3) | 
| #define | M_PI (3.14159265) | 
| #define | TABLE_SIZE (2048) | 
| #define | MIN(a, b) | 
Functions | |
| int | main (void) | 
Variables | |
| volatile int | testCallback2Finished = 0 | 
Test whether all queued samples are played when Pa_StopStream() is used with a callback or read/write stream, or when the callback returns paComplete.
| #define BLIP_SECONDS (.035) /* short blip */ | 
| #define FRAMES_PER_BUFFER (1024) | 
Referenced by main().
| #define GAP_SECONDS (.25) /* gap between long tone and blip */ | 
| #define M_PI (3.14159265) | 
| #define MIN | ( | a, | |
| b ) | 
| #define NUM_REPEATS (3) | 
Referenced by main().
| #define SAMPLE_RATE (44100) | 
Referenced by main().
| #define TABLE_SIZE (2048) | 
| #define TONE_FADE_SECONDS (.04) /* fades at start and end of long tone */ | 
| #define TONE_SECONDS (1) /* long tone */ | 
| int main | ( | void | ) | 
References PaStreamParameters::channelCount, PaDeviceInfo::defaultHighOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, NUM_REPEATS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_IsStreamActive(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), Pa_WriteStream(), paClipOff, paFloat32, paNoError, SAMPLE_RATE, PaStreamParameters::sampleFormat, PaStreamParameters::suggestedLatency, and testCallback2Finished.
| volatile int testCallback2Finished = 0 | 
Referenced by main().