patest_buffer.c File Reference
Test opening streams with different buffer sizes.
More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "portaudio.h"
Data Structures |
struct | paTestData |
Defines |
#define | NUM_SECONDS (3) |
#define | SAMPLE_RATE (44100) |
#define | TABLE_SIZE (200) |
#define | BUFFER_TABLE 14 |
Functions |
PaError | TestOnce (int buffersize, PaDeviceIndex) |
int | main (int argc, char **args) |
Variables |
long | buffer_table [] = {paFramesPerBufferUnspecified,16,32,64,128,200,256,500,512,600,723,1000,1024,2345} |
Detailed Description
Test opening streams with different buffer sizes.
- Author:
- Phil Burk http://www.softsynth.com
Define Documentation
#define SAMPLE_RATE (44100) |
Function Documentation
int main |
( |
int |
argc, |
|
|
char ** |
args | |
|
) |
| | |
References PaStreamParameters::channelCount, PaDeviceInfo::defaultLowOutputLatency, PaStreamParameters::device, PaStreamParameters::hostApiSpecificStreamInfo, paTestData::left_phase, M_PI, NUM_SECONDS, Pa_CloseStream(), Pa_GetDefaultOutputDevice(), Pa_GetDeviceInfo(), Pa_GetErrorText(), Pa_GetLastHostErrorInfo(), Pa_Initialize(), Pa_OpenStream(), Pa_Sleep(), Pa_StartStream(), Pa_Terminate(), paClipOff, paDitherOff, paInt16, paNoError, paTestData::right_phase, SAMPLE_RATE, PaStreamParameters::sampleFormat, paTestData::sampsToGo, paTestData::sine, PaStreamParameters::suggestedLatency, and TABLE_SIZE.
Referenced by main().
Variable Documentation
long buffer_table[] = {paFramesPerBufferUnspecified,16,32,64,128,200,256,500,512,600,723,1000,1024,2345} |