71 typedef enum PaErrorCode
75 paNotInitialized = -10000,
76 paUnanticipatedHostError,
77 paInvalidChannelCount,
81 paSampleFormatNotSupported,
82 paBadIODeviceCombination,
91 paIncompatibleHostApiSpecificStreamInfo,
98 paCanNotReadFromACallbackStream,
99 paCanNotWriteToACallbackStream,
100 paCanNotReadFromAnOutputOnlyStream,
101 paCanNotWriteToAnInputOnlyStream,
102 paIncompatibleStreamHostApi,
169 #define paNoDevice ((PaDeviceIndex)-1)
177 #define paUseHostApiSpecificDeviceSpecification ((PaDeviceIndex)-2)
332 int hostApiDeviceIndex );
436 #define paFloat32 ((PaSampleFormat) 0x00000001)
437 #define paInt32 ((PaSampleFormat) 0x00000002)
438 #define paInt24 ((PaSampleFormat) 0x00000004)
439 #define paInt16 ((PaSampleFormat) 0x00000008)
440 #define paInt8 ((PaSampleFormat) 0x00000010)
441 #define paUInt8 ((PaSampleFormat) 0x00000020)
442 #define paCustomFormat ((PaSampleFormat) 0x00010000)
444 #define paNonInterleaved ((PaSampleFormat) 0x80000000)
455 int maxInputChannels;
456 int maxOutputChannels;
460 PaTime defaultLowOutputLatency;
463 PaTime defaultHighOutputLatency;
465 double defaultSampleRate;
534 #define paFormatIsSupported (0)
591 #define paFramesPerBufferUnspecified (0)
605 #define paNoFlag ((PaStreamFlags) 0)
610 #define paClipOff ((PaStreamFlags) 0x00000001)
615 #define paDitherOff ((PaStreamFlags) 0x00000002)
626 #define paNeverDropInput ((PaStreamFlags) 0x00000004)
634 #define paPrimeOutputBuffersUsingStreamCallback ((PaStreamFlags) 0x00000008)
639 #define paPlatformSpecificFlags ((PaStreamFlags)0xFFFF0000)
670 #define paInputUnderflow ((PaStreamCallbackFlags) 0x00000001)
679 #define paInputOverflow ((PaStreamCallbackFlags) 0x00000002)
685 #define paOutputUnderflow ((PaStreamCallbackFlags) 0x00000004)
690 #define paOutputOverflow ((PaStreamCallbackFlags) 0x00000008)
696 #define paPrimingOutput ((PaStreamCallbackFlags) 0x00000010)
780 const void *input,
void *output,
781 unsigned long frameCount,
783 PaStreamCallbackFlags statusFlags,
845 unsigned long framesPerBuffer,
846 PaStreamFlags streamFlags,
882 int numInputChannels,
883 int numOutputChannels,
884 PaSampleFormat sampleFormat,
886 unsigned long framesPerBuffer,
1097 unsigned long frames );
1124 unsigned long frames );
PaError Pa_Initialize(void)
int structVersion
Definition: portaudio.h:248
PaDeviceIndex defaultInputDevice
Definition: portaudio.h:265
struct PaDeviceInfo PaDeviceInfo
int structVersion
Definition: portaudio.h:991
int PaHostApiIndex
Definition: portaudio.h:187
PaDeviceIndex Pa_GetDefaultInputDevice(void)
PaDeviceIndex Pa_GetDeviceCount(void)
long errorCode
Definition: portaudio.h:340
struct PaStreamInfo PaStreamInfo
PaError Pa_StopStream(PaStream *stream)
struct PaHostErrorInfo PaHostErrorInfo
PaHostApiTypeId hostApiType
Definition: portaudio.h:339
void PaStream
Definition: portaudio.h:584
const PaStreamInfo * Pa_GetStreamInfo(PaStream *stream)
const char * errorText
Definition: portaudio.h:341
void * hostApiSpecificStreamInfo
Definition: portaudio.h:528
Definition: portaudio.h:704
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)
PaTime inputLatency
Definition: portaudio.h:999
int PaStreamCallback(const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
Definition: portaudio.h:779
double sampleRate
Definition: portaudio.h:1016
const PaHostErrorInfo * Pa_GetLastHostErrorInfo(void)
Definition: portaudio.h:648
PaError Pa_IsFormatSupported(const PaStreamParameters *inputParameters, const PaStreamParameters *outputParameters, double sampleRate)
void PaStreamFinishedCallback(void *userData)
Definition: portaudio.h:911
int PaDeviceIndex
Definition: portaudio.h:161
PaError Pa_SetStreamFinishedCallback(PaStream *stream, PaStreamFinishedCallback *streamFinishedCallback)
PaError Pa_StartStream(PaStream *stream)
Definition: portaudio.h:245
struct PaHostApiInfo PaHostApiInfo
Definition: portaudio.h:706
Definition: portaudio.h:988
const char * name
Definition: portaudio.h:252
PaDeviceIndex Pa_HostApiDeviceIndexToDeviceIndex(PaHostApiIndex hostApi, int hostApiDeviceIndex)
PaError Pa_IsStreamStopped(PaStream *stream)
PaTime currentTime
Definition: portaudio.h:650
unsigned long PaStreamFlags
Definition: portaudio.h:602
int PaError
Definition: portaudio.h:70
PaTime defaultHighInputLatency
Definition: portaudio.h:462
int deviceCount
Definition: portaudio.h:259
PaError Pa_IsStreamActive(PaStream *stream)
PaHostApiTypeId
Definition: portaudio.h:224
PaDeviceIndex device
Definition: portaudio.h:495
unsigned long PaStreamCallbackFlags
Definition: portaudio.h:661
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)
PaError Pa_AbortStream(PaStream *stream)
const PaHostApiInfo * Pa_GetHostApiInfo(PaHostApiIndex hostApi)
unsigned long PaSampleFormat
Definition: portaudio.h:433
PaTime suggestedLatency
Definition: portaudio.h:521
signed long Pa_GetStreamReadAvailable(PaStream *stream)
PaSampleFormat sampleFormat
Definition: portaudio.h:508
Definition: portaudio.h:705
PaHostApiIndex Pa_GetHostApiCount(void)
const PaDeviceInfo * Pa_GetDeviceInfo(PaDeviceIndex device)
PaTime outputBufferDacTime
Definition: portaudio.h:651
PaDeviceIndex Pa_GetDefaultOutputDevice(void)
PaStreamCallbackResult
Definition: portaudio.h:702
PaTime outputLatency
Definition: portaudio.h:1007
struct PaStreamCallbackTimeInfo PaStreamCallbackTimeInfo
PaError Pa_ReadStream(PaStream *stream, void *buffer, unsigned long frames)
int channelCount
Definition: portaudio.h:502
PaError Pa_WriteStream(PaStream *stream, const void *buffer, unsigned long frames)
double PaTime
Definition: portaudio.h:409
PaHostApiTypeId type
Definition: portaudio.h:250
Definition: portaudio.h:487
const char * Pa_GetErrorText(PaError errorCode)
PaDeviceIndex defaultOutputDevice
Definition: portaudio.h:271
PaTime inputBufferAdcTime
Definition: portaudio.h:649
PaHostApiIndex Pa_HostApiTypeIdToHostApiIndex(PaHostApiTypeId type)
signed long Pa_GetStreamWriteAvailable(PaStream *stream)
Definition: portaudio.h:338
Definition: portaudio.h:449
PaError Pa_CloseStream(PaStream *stream)
PaError Pa_Terminate(void)
const char * Pa_GetVersionText(void)
PaHostApiIndex hostApi
Definition: portaudio.h:453
double Pa_GetStreamCpuLoad(PaStream *stream)
PaTime defaultLowInputLatency
Definition: portaudio.h:459