patest_start_stop.c File Reference
Play a sine wave for several seconds. Start and stop the stream multiple times.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Detailed Description
Play a sine wave for several seconds. Start and stop the stream multiple times.
- Author:
- Ross Bencina <rossb@audiomulch.com>
-
Phil Burk <philburk@softsynth.com>
Define Documentation
#define FRAMES_PER_BUFFER (400) |
#define OUTPUT_DEVICE Pa_GetDefaultOutputDevice() |
#define SAMPLE_RATE (44100) |
Function Documentation
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, NUM_LOOPS, NUM_SECONDS, OUTPUT_DEVICE, Pa_CloseStream(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paFloat32, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaStreamParameters::suggestedLatency, and TABLE_SIZE.