patest_sine8.c File Reference
Test 8 bit data: play a sine wave for several seconds.
More...
#include <stdio.h>
#include <math.h>
#include "portaudio.h"
Detailed Description
Test 8 bit data: play a sine wave for several seconds.
- Author:
- Ross Bencina <rossb@audiomulch.com>
Define Documentation
#define SAMPLE_RATE (44100) |
#define TEST_FORMAT paInt8 |
#define TEST_UNSIGNED (0) |
Function Documentation
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, paTestData::framesToGo, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetStreamTime(), Pa_Initialize(), Pa_IsStreamActive(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_StopStream(), Pa_Terminate(), paClipOff, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sine, PaStreamParameters::suggestedLatency, TABLE_SIZE, and TEST_FORMAT.