patest_hang.c File Reference
Play a sine then hang audio callback to test watchdog.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Detailed Description
Play a sine then hang audio callback to test watchdog.
- Author:
- Ross Bencina <rossb@audiomulch.com>
-
Phil Burk <philburk@softsynth.com>
Define Documentation
#define FRAMES_PER_BUFFER (1024) |
#define SAMPLE_RATE (44100) |
#define TWOPI (M_PI * 2.0) |
Function Documentation
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paFloat32, paNoError, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sleepFor, and PaStreamParameters::suggestedLatency.