Play a monophonic sine wave on a specific ASIO channel.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
#include "pa_asio.h"
◆ AMPLITUDE
◆ FRAMES_PER_BUFFER
#define FRAMES_PER_BUFFER (64) |
◆ M_PI
#define M_PI (3.14159265) |
◆ NUM_SECONDS
◆ OUTPUT_DEVICE
◆ SAMPLE_RATE
#define SAMPLE_RATE (44100) |
◆ TABLE_SIZE
◆ main()
References AMPLITUDE, PaStreamParameters::channelCount, PaAsioStreamInfo::channelSelectors, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, PaAsioStreamInfo::flags, FRAMES_PER_BUFFER, PaStreamParameters::hostApiSpecificStreamInfo, PaAsioStreamInfo::hostApiType, M_PI, NUM_SECONDS, OUTPUT_DEVICE, Pa_CloseStream(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paASIO, paAsioUseChannelSelectors, paClipOff, paFloat32, paNoError, paTestData::phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaAsioStreamInfo::size, PaStreamParameters::suggestedLatency, TABLE_SIZE, and PaAsioStreamInfo::version.