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...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
 
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. 
- Author
 - Ross Bencina rossb.nosp@m.@aud.nosp@m.iomul.nosp@m.ch.c.nosp@m.om 
 
 
      
        
          | #define BLIP_SECONDS   (.035)   /* short blip */ | 
        
      
 
 
      
        
          | #define FRAMES_PER_BUFFER   (1024) | 
        
      
 
 
      
        
          | #define GAP_SECONDS   (.25)     /* gap between long tone and blip */ | 
        
      
 
 
      
        
          | #define M_PI   (3.14159265) | 
        
      
 
 
      
        
          | #define MIN | 
          ( | 
            | 
          a,  | 
        
        
           | 
           | 
            | 
          b  | 
        
        
           | 
          ) | 
           |    (((a)<(b))?(a):(b)) | 
        
      
 
 
      
        
          | #define SAMPLE_RATE   (44100) | 
        
      
 
 
      
        
          | #define TABLE_SIZE   (2048) | 
        
      
 
 
      
        
          | #define TONE_FADE_SECONDS   (.04)    /* fades at start and end of long tone */ | 
        
      
 
 
      
        
          | #define TONE_SECONDS   (1)      /* long tone */ | 
        
      
 
 
      
        
          | volatile int testCallback2Finished = 0 |