81 #define paMakeVersionNumber(major, minor, subminor) \
82 (((major)&0xFF)<<16 | ((minor)&0xFF)<<8 | ((subminor)&0xFF))
122 typedef enum PaErrorCode
126 paNotInitialized = -10000,
127 paUnanticipatedHostError,
128 paInvalidChannelCount,
132 paSampleFormatNotSupported,
133 paBadIODeviceCombination,
134 paInsufficientMemory,
142 paIncompatibleHostApiSpecificStreamInfo,
144 paStreamIsNotStopped,
149 paCanNotReadFromACallbackStream,
150 paCanNotWriteToACallbackStream,
151 paCanNotReadFromAnOutputOnlyStream,
152 paCanNotWriteToAnInputOnlyStream,
153 paIncompatibleStreamHostApi,
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
506 int maxInputChannels;
507 int maxOutputChannels;
511 PaTime defaultLowOutputLatency;
514 PaTime defaultHighOutputLatency;
516 double defaultSampleRate;
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)
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)