patest_leftright.c File Reference
Play different tone sine waves that alternate between left and right channel.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Detailed Description
Play different tone sine waves that alternate between left and right channel.
The low tone should be on the left channel.
- Author:
- Ross Bencina <rossb@audiomulch.com>
-
Phil Burk <philburk@softsynth.com>
Define Documentation
#define FRAMES_PER_BUFFER (512) |
#define SAMPLE_RATE (44100) |
Function Documentation
References PaStreamParameters::channelCount, paTestData::countDown, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), 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, TABLE_SIZE, and paTestData::toggle.