81 #define paMakeVersionNumber(major, minor, subminor) \
82 (((major)&0xFF)<<16 | ((minor)&0xFF)<<8 | ((subminor)&0xFF))
222 #define paNoDevice ((PaDeviceIndex)-1)
230 #define paUseHostApiSpecificDeviceSpecification ((PaDeviceIndex)-2)
388 int hostApiDeviceIndex );
492 #define paFloat32 ((PaSampleFormat) 0x00000001)
493 #define paInt32 ((PaSampleFormat) 0x00000002)
494 #define paInt24 ((PaSampleFormat) 0x00000004)
495 #define paInt16 ((PaSampleFormat) 0x00000008)
496 #define paInt8 ((PaSampleFormat) 0x00000010)
497 #define paUInt8 ((PaSampleFormat) 0x00000020)
498 #define paCustomFormat ((PaSampleFormat) 0x00010000)
500 #define paNonInterleaved ((PaSampleFormat) 0x80000000)
505 typedef struct PaDeviceInfo
594 #define paFormatIsSupported (0)
651 #define paFramesPerBufferUnspecified (0)
665 #define paNoFlag ((PaStreamFlags) 0)
670 #define paClipOff ((PaStreamFlags) 0x00000001)
675 #define paDitherOff ((PaStreamFlags) 0x00000002)
686 #define paNeverDropInput ((PaStreamFlags) 0x00000004)
694 #define paPrimeOutputBuffersUsingStreamCallback ((PaStreamFlags) 0x00000008)
699 #define paPlatformSpecificFlags ((PaStreamFlags)0xFFFF0000)
730 #define paInputUnderflow ((PaStreamCallbackFlags) 0x00000001)
739 #define paInputOverflow ((PaStreamCallbackFlags) 0x00000002)
745 #define paOutputUnderflow ((PaStreamCallbackFlags) 0x00000004)
750 #define paOutputOverflow ((PaStreamCallbackFlags) 0x00000008)
756 #define paPrimingOutput ((PaStreamCallbackFlags) 0x00000010)
840 const void *input,
void *output,
841 unsigned long frameCount,
843 PaStreamCallbackFlags statusFlags,
908 unsigned long framesPerBuffer,
909 PaStreamFlags streamFlags,
945 int numInputChannels,
946 int numOutputChannels,
947 PaSampleFormat sampleFormat,
949 unsigned long framesPerBuffer,
1164 unsigned long frames );
1195 unsigned long frames );
PaError Pa_Initialize(void)
Definition: pa_front.c:353
Definition: portaudio.h:283
Definition: portaudio.h:147
double defaultSampleRate
Definition: portaudio.h:525
Definition: portaudio.h:132
struct PaDeviceInfo PaDeviceInfo
Definition: portaudio.h:137
Definition: portaudio.h:285
int structVersion
Definition: portaudio.h:304
PaTime defaultHighInputLatency
Definition: portaudio.h:522
Definition: portaudio.h:148
int PaHostApiIndex
Definition: portaudio.h:240
PaDeviceIndex Pa_GetDefaultInputDevice(void)
Definition: pa_front.c:717
int maxInputChannels
Definition: portaudio.h:515
PaDeviceIndex Pa_GetDeviceCount(void)
Definition: pa_front.c:696
PaHostApiTypeId type
Definition: portaudio.h:306
struct PaStreamInfo PaStreamInfo
PaError Pa_StopStream(PaStream *stream)
Definition: pa_front.c:1471
struct PaHostErrorInfo PaHostErrorInfo
void PaStream
Definition: portaudio.h:644
Definition: portaudio.h:1051
Definition: portaudio.h:292
Definition: portaudio.h:134
int versionSubMinor
Definition: portaudio.h:93
int structVersion
Definition: portaudio.h:507
const PaStreamInfo * Pa_GetStreamInfo(PaStream *stream)
Definition: pa_front.c:1556
Definition: portaudio.h:505
long errorCode
Definition: portaudio.h:396
Definition: portaudio.h:764
Definition: portaudio.h:150
Definition: portaudio.h:280
Definition: portaudio.h:146
PaError Pa_GetSampleSize(PaSampleFormat format)
Definition: pa_front.c:1788
PaError Pa_OpenStream(PaStream **stream, const PaStreamParameters *inputParameters, const PaStreamParameters *outputParameters, double sampleRate, unsigned long framesPerBuffer, PaStreamFlags streamFlags, PaStreamCallback *streamCallback, void *userData)
Definition: pa_front.c:1152
double sampleRate
Definition: portaudio.h:1079
PaHostApiIndex Pa_GetDefaultHostApi(void)
Definition: pa_front.c:588
const char * name
Definition: portaudio.h:510
Definition: portaudio.h:149
const char * name
Definition: portaudio.h:308
Definition: portaudio.h:128
int PaStreamCallback(const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
Definition: portaudio.h:839
Definition: portaudio.h:301
Definition: portaudio.h:293
Definition: portaudio.h:90
Definition: portaudio.h:290
const PaHostErrorInfo * Pa_GetLastHostErrorInfo(void)
Definition: pa_front.c:429
PaError Pa_IsFormatSupported(const PaStreamParameters *inputParameters, const PaStreamParameters *outputParameters, double sampleRate)
Definition: pa_front.c:1048
Definition: portaudio.h:133
void PaStreamFinishedCallback(void *userData)
Definition: portaudio.h:974
int PaDeviceIndex
Definition: portaudio.h:214
PaError Pa_SetStreamFinishedCallback(PaStream *stream, PaStreamFinishedCallback *streamFinishedCallback)
Definition: pa_front.c:1416
PaTime defaultLowInputLatency
Definition: portaudio.h:519
PaError Pa_StartStream(PaStream *stream)
Definition: pa_front.c:1445
Definition: portaudio.h:125
Definition: portaudio.h:129
void * hostApiSpecificStreamInfo
Definition: portaudio.h:588
struct PaHostApiInfo PaHostApiInfo
const char * versionControlRevision
Definition: portaudio.h:100
Definition: portaudio.h:140
Definition: portaudio.h:295
PaDeviceIndex defaultInputDevice
Definition: portaudio.h:321
int deviceCount
Definition: portaudio.h:315
Definition: portaudio.h:131
Definition: portaudio.h:766
Definition: portaudio.h:144
Definition: portaudio.h:286
Definition: portaudio.h:152
PaDeviceIndex Pa_HostApiDeviceIndexToDeviceIndex(PaHostApiIndex hostApi, int hostApiDeviceIndex)
Definition: pa_front.c:658
PaError Pa_IsStreamStopped(PaStream *stream)
Definition: pa_front.c:1523
PaTime inputLatency
Definition: portaudio.h:1062
PaSampleFormat sampleFormat
Definition: portaudio.h:568
const char * versionText
Definition: portaudio.h:102
const char * errorText
Definition: portaudio.h:397
unsigned long PaStreamFlags
Definition: portaudio.h:662
int PaError
Definition: portaudio.h:122
PaError Pa_IsStreamActive(PaStream *stream)
Definition: pa_front.c:1539
Definition: portaudio.h:284
PaHostApiTypeId
Definition: portaudio.h:277
Definition: portaudio.h:288
PaTime suggestedLatency
Definition: portaudio.h:581
struct PaVersionInfo PaVersionInfo
int Pa_GetVersion(void)
Definition: pa_front.c:112
Definition: portaudio.h:547
unsigned long PaStreamCallbackFlags
Definition: portaudio.h:721
PaTime Pa_GetStreamTime(PaStream *stream)
Definition: pa_front.c:1592
struct PaStreamParameters PaStreamParameters
Definition: portaudio.h:291
PaError Pa_OpenDefaultStream(PaStream **stream, int numInputChannels, int numOutputChannels, PaSampleFormat sampleFormat, double sampleRate, unsigned long framesPerBuffer, PaStreamCallback *streamCallback, void *userData)
Definition: pa_front.c:1286
PaDeviceIndex defaultOutputDevice
Definition: portaudio.h:327
Definition: portaudio.h:282
Definition: portaudio.h:281
int structVersion
Definition: portaudio.h:1054
PaError Pa_AbortStream(PaStream *stream)
Definition: pa_front.c:1497
Definition: portaudio.h:394
Definition: portaudio.h:155
const PaHostApiInfo * Pa_GetHostApiInfo(PaHostApiIndex hostApi)
Definition: pa_front.c:617
unsigned long PaSampleFormat
Definition: portaudio.h:489
PaHostApiIndex hostApi
Definition: portaudio.h:513
signed long Pa_GetStreamReadAvailable(PaStream *stream)
Definition: pa_front.c:1730
PaTime inputBufferAdcTime
Definition: portaudio.h:709
Definition: portaudio.h:145
Definition: portaudio.h:143
Definition: portaudio.h:765
Definition: portaudio.h:136
Definition: portaudio.h:294
PaHostApiIndex Pa_GetHostApiCount(void)
Definition: pa_front.c:567
const PaDeviceInfo * Pa_GetDeviceInfo(PaDeviceIndex device)
Definition: pa_front.c:763
PaDeviceIndex Pa_GetDefaultOutputDevice(void)
Definition: pa_front.c:740
Definition: portaudio.h:151
PaStreamCallbackResult
Definition: portaudio.h:762
Definition: portaudio.h:130
PaDeviceIndex device
Definition: portaudio.h:555
struct PaStreamCallbackTimeInfo PaStreamCallbackTimeInfo
int versionMinor
Definition: portaudio.h:92
PaErrorCode
Definition: portaudio.h:123
void Pa_Sleep(long msec)
Definition: pa_unix_util.c:112
Definition: portaudio.h:289
PaError Pa_ReadStream(PaStream *stream, void *buffer, unsigned long frames)
Definition: pa_front.c:1651
Definition: portaudio.h:154
PaTime defaultLowOutputLatency
Definition: portaudio.h:520
char buffer[NUM_BYTES]
Definition: recplay.c:26
PaHostApiTypeId hostApiType
Definition: portaudio.h:395
PaTime outputLatency
Definition: portaudio.h:1070
Definition: portaudio.h:279
Definition: portaudio.h:141
PaError Pa_WriteStream(PaStream *stream, const void *buffer, unsigned long frames)
Definition: pa_front.c:1691
double PaTime
Definition: portaudio.h:465
PaTime outputBufferDacTime
Definition: portaudio.h:711
Definition: portaudio.h:156
const char * Pa_GetErrorText(PaError errorCode)
Definition: pa_front.c:435
Definition: portaudio.h:142
Definition: portaudio.h:138
int maxOutputChannels
Definition: portaudio.h:516
int channelCount
Definition: portaudio.h:562
const PaVersionInfo * Pa_GetVersionInfo(void)
Definition: pa_front.c:130
PaHostApiIndex Pa_HostApiTypeIdToHostApiIndex(PaHostApiTypeId type)
Definition: pa_front.c:484
signed long Pa_GetStreamWriteAvailable(PaStream *stream)
Definition: pa_front.c:1759
PaTime currentTime
Definition: portaudio.h:710
PaError Pa_CloseStream(PaStream *stream)
Definition: pa_front.c:1382
PaTime defaultHighOutputLatency
Definition: portaudio.h:523
PaError Pa_Terminate(void)
Definition: pa_front.c:398
const char * Pa_GetVersionText(void)
Definition: pa_front.c:117
int versionMajor
Definition: portaudio.h:91
Definition: portaudio.h:139
Definition: portaudio.h:135
Definition: portaudio.h:153
Definition: portaudio.h:708
double Pa_GetStreamCpuLoad(PaStream *stream)
Definition: pa_front.c:1621
Definition: portaudio.h:287
Definition: portaudio.h:127