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"
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
Define Documentation
#define FRAMES_PER_BUFFER (1024) |
#define SAMPLE_RATE (44100) |
Function Documentation
References buffer, PaStreamParameters::channelCount, PaDeviceInfo::defaultHighOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_OpenStream(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), Pa_WriteStream(), paClipOff, paFloat32, paNoError, SAMPLE_RATE, PaStreamParameters::sampleFormat, PaStreamParameters::suggestedLatency, and TABLE_SIZE.