PortAudio  2.0
Macros | Functions
patest_write_stop.c File Reference

Play a few seconds of silence followed by a few cycles of a sine wave. Tests to make sure that pa_StopStream() completes playback in blocking I/O. More...

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

Macros

#define NUM_SECONDS   (5)
 
#define SAMPLE_RATE   (44100)
 
#define FRAMES_PER_BUFFER   (1024)
 
#define M_PI   (3.14159265)
 
#define TABLE_SIZE   (200)
 

Functions

int main (void)
 

Detailed Description

Play a few seconds of silence followed by a few cycles of a sine wave. Tests to make sure that pa_StopStream() completes playback in blocking I/O.

Author
Bjorn Roche of XO Audio (www.xoaudio.com)
Ross Bencina
Phil Burk

Macro Definition Documentation

#define FRAMES_PER_BUFFER   (1024)
#define M_PI   (3.14159265)
#define NUM_SECONDS   (5)
#define SAMPLE_RATE   (44100)
#define TABLE_SIZE   (200)

Function Documentation

int main ( void  )