patest_sine_channelmaps.c File Reference
Plays sine waves using sme simple channel maps. Designed for use with CoreAudio, but should made to work with other APIs.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Detailed Description
Plays sine waves using sme simple channel maps. Designed for use with CoreAudio, but should made to work with other APIs.
- Author:
- Bjorn Roche <bjorn@xowave.com>
-
Ross Bencina <rossb@audiomulch.com>
-
Phil Burk <philburk@softsynth.com>
Define Documentation
#define FRAMES_PER_BUFFER (64) |
#define SAMPLE_RATE (44100) |
Function Documentation
setup host specific info
References PaStreamParameters::channelCount, 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, PaMacCore_GetChannelName(), PaMacCore_SetupChannelMap(), PaMacCore_SetupStreamInfo(), paMacCorePlayNice, paNoDevice, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaStreamParameters::suggestedLatency, and TABLE_SIZE.