81 #define paMakeVersionNumber(major, minor, subminor) \
82 (((major)&0xFF)<<16 | ((minor)&0xFF)<<8 | ((subminor)&0xFF))
123 typedef enum PaErrorCode
127 paNotInitialized = -10000,
128 paUnanticipatedHostError,
129 paInvalidChannelCount,
133 paSampleFormatNotSupported,
134 paBadIODeviceCombination,
135 paInsufficientMemory,
143 paIncompatibleHostApiSpecificStreamInfo,
145 paStreamIsNotStopped,
150 paCanNotReadFromACallbackStream,
151 paCanNotWriteToACallbackStream,
152 paCanNotReadFromAnOutputOnlyStream,
153 paCanNotWriteToAnInputOnlyStream,
154 paIncompatibleStreamHostApi,
156 paCanNotInitializeRecursively
222 #define paNoDevice ((PaDeviceIndex)-1)
230 #define paUseHostApiSpecificDeviceSpecification ((PaDeviceIndex)-2)
292 paAudioScienceHPI=14,
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
515 int maxInputChannels;
516 int maxOutputChannels;
520 PaTime defaultLowOutputLatency;
523 PaTime defaultHighOutputLatency;
525 double defaultSampleRate;
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)
struct PaDeviceInfo PaDeviceInfo
PaTime defaultHighInputLatency
PaDeviceIndex Pa_GetDefaultInputDevice(void)
PaDeviceIndex Pa_GetDeviceCount(void)
struct PaStreamInfo PaStreamInfo
PaError Pa_StopStream(PaStream *stream)
struct PaHostErrorInfo PaHostErrorInfo
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)
int PaStreamCallback(const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
const PaHostErrorInfo * Pa_GetLastHostErrorInfo(void)
PaError Pa_IsFormatSupported(const PaStreamParameters *inputParameters, const PaStreamParameters *outputParameters, double sampleRate)
void PaStreamFinishedCallback(void *userData)
PaError Pa_SetStreamFinishedCallback(PaStream *stream, PaStreamFinishedCallback *streamFinishedCallback)
PaTime defaultLowInputLatency
PaError Pa_StartStream(PaStream *stream)
void * hostApiSpecificStreamInfo
struct PaHostApiInfo PaHostApiInfo
const char * versionControlRevision
PaDeviceIndex defaultInputDevice
PaDeviceIndex Pa_HostApiDeviceIndexToDeviceIndex(PaHostApiIndex hostApi, int hostApiDeviceIndex)
PaError Pa_IsStreamStopped(PaStream *stream)
PaSampleFormat sampleFormat
unsigned long PaStreamFlags
PaError Pa_IsStreamActive(PaStream *stream)
struct PaVersionInfo PaVersionInfo
unsigned long PaStreamCallbackFlags
PaTime Pa_GetStreamTime(PaStream *stream)
struct PaStreamParameters PaStreamParameters
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)
PaTime inputBufferAdcTime
PaHostApiIndex Pa_GetHostApiCount(void)
const PaDeviceInfo * Pa_GetDeviceInfo(PaDeviceIndex device)
PaDeviceIndex Pa_GetDefaultOutputDevice(void)
struct PaStreamCallbackTimeInfo PaStreamCallbackTimeInfo
PaError Pa_ReadStream(PaStream *stream, void *buffer, unsigned long frames)
PaHostApiTypeId hostApiType
PaError Pa_WriteStream(PaStream *stream, const void *buffer, unsigned long frames)
PaTime outputBufferDacTime
const char * Pa_GetErrorText(PaError errorCode)
const PaVersionInfo * Pa_GetVersionInfo(void)
PaHostApiIndex Pa_HostApiTypeIdToHostApiIndex(PaHostApiTypeId type)
signed long Pa_GetStreamWriteAvailable(PaStream *stream)
PaError Pa_CloseStream(PaStream *stream)
PaError Pa_Terminate(void)
const char * Pa_GetVersionText(void)
double Pa_GetStreamCpuLoad(PaStream *stream)