PortAudio  2.0
Data Structures | Macros | Functions
patest_prime.c File Reference

Test stream priming mode. More...

#include <stdio.h>
#include <math.h>
#include "portaudio.h"
#include "pa_util.h"

Data Structures

struct  paTestData
 

Macros

#define NUM_BEEPS   (3)
 
#define SAMPLE_RATE   (44100)
 
#define SAMPLE_PERIOD   (1.0/44100.0)
 
#define FRAMES_PER_BUFFER   (256)
 
#define BEEP_DURATION   (400)
 
#define IDLE_DURATION   (SAMPLE_RATE*2) /* 2 seconds */
 
#define SLEEP_MSEC   (50)
 
#define STATE_BKG_IDLE   (0)
 
#define STATE_BKG_BEEPING   (1)
 

Functions

int main (void)
 

Detailed Description

Test stream priming mode.

Author
Ross Bencina http://www.audiomulch.com/~rossb

Macro Definition Documentation

#define BEEP_DURATION   (400)
#define FRAMES_PER_BUFFER   (256)
#define IDLE_DURATION   (SAMPLE_RATE*2) /* 2 seconds */
#define NUM_BEEPS   (3)
#define SAMPLE_PERIOD   (1.0/44100.0)
#define SAMPLE_RATE   (44100)
#define SLEEP_MSEC   (50)
#define STATE_BKG_BEEPING   (1)
#define STATE_BKG_IDLE   (0)

Function Documentation

int main ( void  )