67 paNotInitialized = -10000,
68 paUnanticipatedHostError,
69 paInvalidChannelCount,
73 paSampleFormatNotSupported,
74 paBadIODeviceCombination,
83 paIncompatibleHostApiSpecificStreamInfo,
94 paIncompatibleStreamHostApi,
161 #define paNoDevice ((PaDeviceIndex)-1)
169 #define paUseHostApiSpecificDeviceSpecification ((PaDeviceIndex)-2)
323 int hostApiDeviceIndex );
424 #define paFloat32 ((PaSampleFormat) 0x00000001)
425 #define paInt32 ((PaSampleFormat) 0x00000002)
426 #define paInt24 ((PaSampleFormat) 0x00000004)
427 #define paInt16 ((PaSampleFormat) 0x00000008)
428 #define paInt8 ((PaSampleFormat) 0x00000010)
429 #define paUInt8 ((PaSampleFormat) 0x00000020)
430 #define paCustomFormat ((PaSampleFormat) 0x00010000)
432 #define paNonInterleaved ((PaSampleFormat) 0x80000000)
440 PaHostApiIndex hostApi;
442 int maxInputChannels;
443 int maxOutputChannels;
446 PaTime defaultLowInputLatency;
447 PaTime defaultLowOutputLatency;
449 PaTime defaultHighInputLatency;
450 PaTime defaultHighOutputLatency;
452 double defaultSampleRate;
522 #define paFormatIsSupported (0)
579 #define paFramesPerBufferUnspecified (0)
593 #define paNoFlag ((PaStreamFlags) 0)
598 #define paClipOff ((PaStreamFlags) 0x00000001)
603 #define paDitherOff ((PaStreamFlags) 0x00000002)
614 #define paNeverDropInput ((PaStreamFlags) 0x00000004)
622 #define paPrimeOutputBuffersUsingStreamCallback ((PaStreamFlags) 0x00000008)
627 #define paPlatformSpecificFlags ((PaStreamFlags)0xFFFF0000)
633 PaTime inputBufferAdcTime;
635 PaTime outputBufferDacTime;
655 #define paInputUnderflow ((PaStreamCallbackFlags) 0x00000001)
664 #define paInputOverflow ((PaStreamCallbackFlags) 0x00000002)
670 #define paOutputUnderflow ((PaStreamCallbackFlags) 0x00000004)
675 #define paOutputOverflow ((PaStreamCallbackFlags) 0x00000008)
681 #define paPrimingOutput ((PaStreamCallbackFlags) 0x00000010)
740 const void *input,
void *output,
741 unsigned long frameCount,
743 PaStreamCallbackFlags statusFlags,
805 unsigned long framesPerBuffer,
806 PaStreamFlags streamFlags,
842 int numInputChannels,
843 int numOutputChannels,
844 PaSampleFormat sampleFormat,
846 unsigned long framesPerBuffer,
1050 unsigned long frames );
1077 unsigned long frames );
PaError Pa_Initialize(void)
struct PaDeviceInfo PaDeviceInfo
PaDeviceIndex Pa_GetDefaultInputDevice(void)
PaDeviceIndex Pa_GetDeviceCount(void)
PaError Pa_StopStream(PaStream *stream)
const PaStreamInfo * Pa_GetStreamInfo(PaStream *stream)
PaError Pa_GetSampleSize(PaSampleFormat format)
PaError Pa_OpenStream(PaStream **stream, const PaStreamParameters *inputParameters, const PaStreamParameters *outputParameters, double sampleRate, unsigned long framesPerBuffer, PaStreamFlags streamFlags, PaStreamCallback *streamCallback, void *userData)
PaHostApiIndex Pa_GetDefaultHostApi(void)
struct PaHostApiInfo PaHostApiInfo
int PaStreamCallback(const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
struct PaHostErrorInfo PaHostErrorInfo
const PaHostErrorInfo * Pa_GetLastHostErrorInfo(void)
PaError Pa_IsFormatSupported(const PaStreamParameters *inputParameters, const PaStreamParameters *outputParameters, double sampleRate)
struct PaStreamInfo PaStreamInfo
struct PaStreamParameters PaStreamParameters
void PaStreamFinishedCallback(void *userData)
PaError Pa_SetStreamFinishedCallback(PaStream *stream, PaStreamFinishedCallback *streamFinishedCallback)
PaError Pa_StartStream(PaStream *stream)
void * hostApiSpecificStreamInfo
PaDeviceIndex defaultInputDevice
PaDeviceIndex Pa_HostApiDeviceIndexToDeviceIndex(PaHostApiIndex hostApi, int hostApiDeviceIndex)
PaError Pa_IsStreamStopped(PaStream *stream)
PaSampleFormat sampleFormat
unsigned long PaStreamFlags
PaError Pa_IsStreamActive(PaStream *stream)
unsigned long PaStreamCallbackFlags
PaTime Pa_GetStreamTime(PaStream *stream)
PaError Pa_OpenDefaultStream(PaStream **stream, int numInputChannels, int numOutputChannels, PaSampleFormat sampleFormat, double sampleRate, unsigned long framesPerBuffer, PaStreamCallback *streamCallback, void *userData)
PaDeviceIndex defaultOutputDevice
PaError Pa_AbortStream(PaStream *stream)
const PaHostApiInfo * Pa_GetHostApiInfo(PaHostApiIndex hostApi)
unsigned long PaSampleFormat
signed long Pa_GetStreamReadAvailable(PaStream *stream)
PaHostApiIndex Pa_GetHostApiCount(void)
const PaDeviceInfo * Pa_GetDeviceInfo(PaDeviceIndex device)
PaDeviceIndex Pa_GetDefaultOutputDevice(void)
PaError Pa_ReadStream(PaStream *stream, void *buffer, unsigned long frames)
PaHostApiTypeId hostApiType
PaError Pa_WriteStream(PaStream *stream, const void *buffer, unsigned long frames)
const char * Pa_GetErrorText(PaError errorCode)
PaHostApiIndex Pa_HostApiTypeIdToHostApiIndex(PaHostApiTypeId type)
signed long Pa_GetStreamWriteAvailable(PaStream *stream)
struct PaStreamCallbackTimeInfo PaStreamCallbackTimeInfo
PaError Pa_CloseStream(PaStream *stream)
PaError Pa_Terminate(void)
const char * Pa_GetVersionText(void)
double Pa_GetStreamCpuLoad(PaStream *stream)