patest1.c File Reference

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 M_PI   (3.14159265)
#define SAMPLE_RATE   (44100)

Functions

int main (int argc, char *argv[])


Detailed Description

Ring modulate the audio input with a sine wave for 20 seconds.

Author:
Ross Bencina <rossb@audiomulch.com>

Define Documentation

#define M_PI   (3.14159265)

#define SAMPLE_RATE   (44100)


Function Documentation

int main ( int  argc,
char *  argv[] 
)

References AUDIO, audioDev, BLOCK_SIZE, buffer, paTestData::buffer, PaWinMmeStreamInfo::bufferCount, paTestData::bufferSampleCount, CHANNEL_COUNT, PaStreamParameters::channelCount, PaWinMmeStreamInfo::channelMask, PaWinDirectSoundStreamInfo::channelMask, paTestData::currentChannel, paTestData::cycleCount, PaDeviceInfo::defaultLowOutputLatency, PaHostApiInfo::defaultOutputDevice, PaStreamParameters::device, PaWinMmeStreamInfo::flags, PaWinDirectSoundStreamInfo::flags, FRAMES_PER_BUFFER, PaWinMmeStreamInfo::framesPerBuffer, PaStreamParameters::hostApiSpecificStreamInfo, PaWinMmeStreamInfo::hostApiType, PaWinDirectSoundStreamInfo::hostApiType, M_PI, NUM_BYTES, NUM_SECONDS, Pa_CloseStream(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetHostApiInfo(), Pa_HostApiTypeIdToHostApiIndex(), Pa_Initialize(), Pa_IsFormatSupported(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paDirectSound, paFloat32, paFormatIsSupported, paInt16, paMME, paNoError, PAWIN_SPEAKER_5POINT1, paWinDirectSoundUseChannelMask, paWinMmeDontThrottleOverloadedProcessingThread, paWinMmeUseChannelMask, paWinMmeUseLowLevelLatencyParameters, paWinMmeWaveFormatDolbyAc3Spdif, paTestData::phase, paTestData::playbackIndex, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaWinMmeStreamInfo::size, PaWinDirectSoundStreamInfo::size, PaStreamParameters::suggestedLatency, TABLE_SIZE, PaWinMmeStreamInfo::version, PaWinDirectSoundStreamInfo::version, WMME_BUFFER_COUNT, and WMME_FRAMES_PER_BUFFER.


Generated on Tue Aug 9 16:05:24 2011 for PortAudio by  doxygen 1.5.7.1