patest_stop_playout.c File Reference

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"

Data Structures

struct  TestData

Defines

#define SAMPLE_RATE   (44100)
#define FRAMES_PER_BUFFER   (1024)
#define TONE_SECONDS   (1)
#define TONE_FADE_SECONDS   (.04)
#define GAP_SECONDS   (.25)
#define BLIP_SECONDS   (.035)
#define NUM_REPEATS   (3)
#define M_PI   (3.14159265)
#define TABLE_SIZE   (2048)
#define MIN(a, b)   (((a)<(b))?(a):(b))

Functions

int main (void)

Variables

volatile int testCallback2Finished = 0


Detailed Description

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@audiomulch.com>

Define Documentation

#define BLIP_SECONDS   (.035)

#define FRAMES_PER_BUFFER   (1024)

#define GAP_SECONDS   (.25)

#define M_PI   (3.14159265)

#define MIN ( a,
 )     (((a)<(b))?(a):(b))

#define NUM_REPEATS   (3)

#define SAMPLE_RATE   (44100)

#define TABLE_SIZE   (2048)

#define TONE_FADE_SECONDS   (.04)

#define TONE_SECONDS   (1)


Function Documentation

int main ( void   ) 

setup host specific info


Variable Documentation

volatile int testCallback2Finished = 0


Generated on Tue Aug 9 16:05:24 2011 for PortAudio by  doxygen 1.5.7.1