Ring modulate the audio input with a sine wave for 20 seconds. More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Data Structures | |
struct | patest1data |
Defines | |
#define | SAMPLE_RATE (44100) |
Functions | |
int | main (int argc, char *argv[]) |
Ring modulate the audio input with a sine wave for 20 seconds.
#define SAMPLE_RATE (44100) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowInputLatency, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, PaHostErrorInfo::errorCode, PaHostErrorInfo::errorText, PaStreamParameters::hostApiSpecificStreamInfo, M_PI, Pa_AbortStream(), Pa_CloseStream(), Pa_GetDefaultInputDevice(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetLastHostErrorInfo(), Pa_Initialize(), Pa_IsStreamActive(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_Terminate(), paClipOff, paFloat32, paNoError, paUnanticipatedHostError, patest1data::phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, patest1data::sampsToGo, patest1data::sine, and PaStreamParameters::suggestedLatency.