patest_mono.c File Reference
Play a monophonic sine wave using the Portable Audio api for several seconds.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Detailed Description
Play a monophonic sine wave using the Portable Audio api for several seconds.
- Author:
- Phil Burk http://www.softsynth.com
Define Documentation
#define FRAMES_PER_BUFFER (64) |
#define OUTPUT_DEVICE Pa_GetDefaultOutputDevice() |
#define SAMPLE_RATE (44100) |
Function Documentation
References AMPLITUDE, PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, M_PI, 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::phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaStreamParameters::suggestedLatency, and TABLE_SIZE.