Play different tone sine waves that alternate between left and right channel. More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Data Structures | |
struct | paTestData |
Defines | |
#define | NUM_SECONDS (8) |
#define | SAMPLE_RATE (44100) |
#define | FRAMES_PER_BUFFER (512) |
#define | M_PI (3.14159265) |
#define | TABLE_SIZE (200) |
Functions | |
int | main (void) |
Play different tone sine waves that alternate between left and right channel.
The low tone should be on the left channel.
#define FRAMES_PER_BUFFER (512) |
Referenced by main().
#define M_PI (3.14159265) |
Referenced by main().
#define NUM_SECONDS (8) |
Referenced by main().
#define SAMPLE_RATE (44100) |
Referenced by main().
#define TABLE_SIZE (200) |
int main | ( | void | ) |
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, paNoDevice, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaStreamParameters::suggestedLatency, and paTestData::toggle.