81 #define paMakeVersionNumber(major, minor, subminor) \
82 (((major)&0xFF)<<16 | ((minor)&0xFF)<<8 | ((subminor)&0xFF))
220 #define paNoDevice ((PaDeviceIndex)-1)
228 #define paUseHostApiSpecificDeviceSpecification ((PaDeviceIndex)-2)
383 int hostApiDeviceIndex );
487 #define paFloat32 ((PaSampleFormat) 0x00000001)
488 #define paInt32 ((PaSampleFormat) 0x00000002)
489 #define paInt24 ((PaSampleFormat) 0x00000004)
490 #define paInt16 ((PaSampleFormat) 0x00000008)
491 #define paInt8 ((PaSampleFormat) 0x00000010)
492 #define paUInt8 ((PaSampleFormat) 0x00000020)
493 #define paCustomFormat ((PaSampleFormat) 0x00010000)
495 #define paNonInterleaved ((PaSampleFormat) 0x80000000)
500 typedef struct PaDeviceInfo
585 #define paFormatIsSupported (0)
642 #define paFramesPerBufferUnspecified (0)
656 #define paNoFlag ((PaStreamFlags) 0)
661 #define paClipOff ((PaStreamFlags) 0x00000001)
666 #define paDitherOff ((PaStreamFlags) 0x00000002)
677 #define paNeverDropInput ((PaStreamFlags) 0x00000004)
685 #define paPrimeOutputBuffersUsingStreamCallback ((PaStreamFlags) 0x00000008)
690 #define paPlatformSpecificFlags ((PaStreamFlags)0xFFFF0000)
721 #define paInputUnderflow ((PaStreamCallbackFlags) 0x00000001)
730 #define paInputOverflow ((PaStreamCallbackFlags) 0x00000002)
736 #define paOutputUnderflow ((PaStreamCallbackFlags) 0x00000004)
741 #define paOutputOverflow ((PaStreamCallbackFlags) 0x00000008)
747 #define paPrimingOutput ((PaStreamCallbackFlags) 0x00000010)
831 const void *input,
void *output,
832 unsigned long frameCount,
834 PaStreamCallbackFlags statusFlags,
896 unsigned long framesPerBuffer,
897 PaStreamFlags streamFlags,
933 int numInputChannels,
934 int numOutputChannels,
935 PaSampleFormat sampleFormat,
937 unsigned long framesPerBuffer,
1148 unsigned long frames );
1175 unsigned long frames );
PaError Pa_Initialize(void)
Definition: pa_front.c:355
Definition: portaudio.h:281
Definition: portaudio.h:146
double defaultSampleRate
Definition: portaudio.h:516
Definition: portaudio.h:131
struct PaDeviceInfo PaDeviceInfo
Definition: portaudio.h:136
Definition: portaudio.h:283
int structVersion
Definition: portaudio.h:299
PaTime defaultHighInputLatency
Definition: portaudio.h:513
Definition: portaudio.h:147
int PaHostApiIndex
Definition: portaudio.h:238
PaDeviceIndex Pa_GetDefaultInputDevice(void)
Definition: pa_front.c:703
int maxInputChannels
Definition: portaudio.h:506
PaDeviceIndex Pa_GetDeviceCount(void)
Definition: pa_front.c:682
PaHostApiTypeId type
Definition: portaudio.h:301
struct PaStreamInfo PaStreamInfo
PaError Pa_StopStream(PaStream *stream)
Definition: pa_front.c:1457
struct PaHostErrorInfo PaHostErrorInfo
void PaStream
Definition: portaudio.h:635
Definition: portaudio.h:1039
Definition: portaudio.h:290
Definition: portaudio.h:133
int versionSubMinor
Definition: portaudio.h:93
int structVersion
Definition: portaudio.h:502
const PaStreamInfo * Pa_GetStreamInfo(PaStream *stream)
Definition: pa_front.c:1542
Definition: portaudio.h:500
long errorCode
Definition: portaudio.h:391
Definition: portaudio.h:755
Definition: portaudio.h:149
Definition: portaudio.h:278
Definition: portaudio.h:145
PaError Pa_GetSampleSize(PaSampleFormat format)
Definition: pa_front.c:1774
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:1138
double sampleRate
Definition: portaudio.h:1067
PaHostApiIndex Pa_GetDefaultHostApi(void)
Definition: pa_front.c:574
const char * name
Definition: portaudio.h:503
Definition: portaudio.h:148
const char * name
Definition: portaudio.h:303
Definition: portaudio.h:127
int PaStreamCallback(const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
Definition: portaudio.h:830
Definition: portaudio.h:296
Definition: portaudio.h:90
Definition: portaudio.h:288
const PaHostErrorInfo * Pa_GetLastHostErrorInfo(void)
Definition: pa_front.c:416
PaError Pa_IsFormatSupported(const PaStreamParameters *inputParameters, const PaStreamParameters *outputParameters, double sampleRate)
Definition: pa_front.c:1034
Definition: portaudio.h:132
void PaStreamFinishedCallback(void *userData)
Definition: portaudio.h:962
int PaDeviceIndex
Definition: portaudio.h:212
PaError Pa_SetStreamFinishedCallback(PaStream *stream, PaStreamFinishedCallback *streamFinishedCallback)
Definition: pa_front.c:1402
PaTime defaultLowInputLatency
Definition: portaudio.h:510
PaError Pa_StartStream(PaStream *stream)
Definition: pa_front.c:1431
Definition: portaudio.h:124
Definition: portaudio.h:128
void * hostApiSpecificStreamInfo
Definition: portaudio.h:579
struct PaHostApiInfo PaHostApiInfo
const char * versionControlRevision
Definition: portaudio.h:99
Definition: portaudio.h:139
PaDeviceIndex defaultInputDevice
Definition: portaudio.h:316
int deviceCount
Definition: portaudio.h:310
Definition: portaudio.h:130
Definition: portaudio.h:757
Definition: portaudio.h:143
Definition: portaudio.h:284
Definition: portaudio.h:151
PaDeviceIndex Pa_HostApiDeviceIndexToDeviceIndex(PaHostApiIndex hostApi, int hostApiDeviceIndex)
Definition: pa_front.c:644
PaError Pa_IsStreamStopped(PaStream *stream)
Definition: pa_front.c:1509
PaTime inputLatency
Definition: portaudio.h:1050
PaSampleFormat sampleFormat
Definition: portaudio.h:559
const char * versionText
Definition: portaudio.h:101
const char * errorText
Definition: portaudio.h:392
unsigned long PaStreamFlags
Definition: portaudio.h:653
int PaError
Definition: portaudio.h:121
PaError Pa_IsStreamActive(PaStream *stream)
Definition: pa_front.c:1525
Definition: portaudio.h:282
PaHostApiTypeId
Definition: portaudio.h:275
Definition: portaudio.h:286
PaTime suggestedLatency
Definition: portaudio.h:572
struct PaVersionInfo PaVersionInfo
int Pa_GetVersion(void)
Definition: pa_front.c:115
Definition: portaudio.h:538
unsigned long PaStreamCallbackFlags
Definition: portaudio.h:712
PaTime Pa_GetStreamTime(PaStream *stream)
Definition: pa_front.c:1578
struct PaStreamParameters PaStreamParameters
Definition: portaudio.h:289
PaError Pa_OpenDefaultStream(PaStream **stream, int numInputChannels, int numOutputChannels, PaSampleFormat sampleFormat, double sampleRate, unsigned long framesPerBuffer, PaStreamCallback *streamCallback, void *userData)
Definition: pa_front.c:1272
PaDeviceIndex defaultOutputDevice
Definition: portaudio.h:322
Definition: portaudio.h:280
Definition: portaudio.h:279
int structVersion
Definition: portaudio.h:1042
PaError Pa_AbortStream(PaStream *stream)
Definition: pa_front.c:1483
Definition: portaudio.h:389
Definition: portaudio.h:154
const PaHostApiInfo * Pa_GetHostApiInfo(PaHostApiIndex hostApi)
Definition: pa_front.c:603
unsigned long PaSampleFormat
Definition: portaudio.h:484
PaHostApiIndex hostApi
Definition: portaudio.h:504
signed long Pa_GetStreamReadAvailable(PaStream *stream)
Definition: pa_front.c:1716
PaTime inputBufferAdcTime
Definition: portaudio.h:700
Definition: portaudio.h:144
Definition: portaudio.h:142
Definition: portaudio.h:756
Definition: portaudio.h:135
PaHostApiIndex Pa_GetHostApiCount(void)
Definition: pa_front.c:553
const PaDeviceInfo * Pa_GetDeviceInfo(PaDeviceIndex device)
Definition: pa_front.c:749
PaDeviceIndex Pa_GetDefaultOutputDevice(void)
Definition: pa_front.c:726
Definition: portaudio.h:150
PaStreamCallbackResult
Definition: portaudio.h:753
Definition: portaudio.h:129
PaDeviceIndex device
Definition: portaudio.h:546
struct PaStreamCallbackTimeInfo PaStreamCallbackTimeInfo
int versionMinor
Definition: portaudio.h:92
PaErrorCode
Definition: portaudio.h:122
void Pa_Sleep(long msec)
Definition: pa_unix_util.c:108
Definition: portaudio.h:287
PaError Pa_ReadStream(PaStream *stream, void *buffer, unsigned long frames)
Definition: pa_front.c:1637
Definition: portaudio.h:153
PaTime defaultLowOutputLatency
Definition: portaudio.h:511
char buffer[NUM_BYTES]
Definition: recplay.c:26
PaHostApiTypeId hostApiType
Definition: portaudio.h:390
PaTime outputLatency
Definition: portaudio.h:1058
Definition: portaudio.h:277
Definition: portaudio.h:140
PaError Pa_WriteStream(PaStream *stream, const void *buffer, unsigned long frames)
Definition: pa_front.c:1677
double PaTime
Definition: portaudio.h:460
PaTime outputBufferDacTime
Definition: portaudio.h:702
const char * Pa_GetErrorText(PaError errorCode)
Definition: pa_front.c:422
Definition: portaudio.h:141
Definition: portaudio.h:137
int maxOutputChannels
Definition: portaudio.h:507
int channelCount
Definition: portaudio.h:553
const PaVersionInfo * Pa_GetVersionInfo(void)
Definition: pa_front.c:133
PaHostApiIndex Pa_HostApiTypeIdToHostApiIndex(PaHostApiTypeId type)
Definition: pa_front.c:470
signed long Pa_GetStreamWriteAvailable(PaStream *stream)
Definition: pa_front.c:1745
PaTime currentTime
Definition: portaudio.h:701
PaError Pa_CloseStream(PaStream *stream)
Definition: pa_front.c:1368
PaTime defaultHighOutputLatency
Definition: portaudio.h:514
PaError Pa_Terminate(void)
Definition: pa_front.c:385
const char * Pa_GetVersionText(void)
Definition: pa_front.c:120
int versionMajor
Definition: portaudio.h:91
Definition: portaudio.h:138
Definition: portaudio.h:134
Definition: portaudio.h:152
Definition: portaudio.h:699
double Pa_GetStreamCpuLoad(PaStream *stream)
Definition: pa_front.c:1607
Definition: portaudio.h:285
Definition: portaudio.h:126