293 unsigned long hostInputFrameCount[2];
300 unsigned long hostOutputFrameCount[2];
384 unsigned long framesPerUserBuffer,
385 unsigned long framesPerHostBuffer,
452 unsigned long frameCount );
475 unsigned int channel,
void *data,
unsigned int stride );
489 unsigned int firstChannel,
void *data,
unsigned int channelCount );
500 unsigned int channel,
void *data );
507 unsigned long frameCount );
513 unsigned int channel,
void *data,
unsigned int stride );
519 unsigned int firstChannel,
void *data,
unsigned int channelCount );
525 unsigned int channel,
void *data );
540 unsigned long frameCount );
561 unsigned int channel,
void *data,
unsigned int stride );
575 unsigned int firstChannel,
void *data,
unsigned int channelCount );
586 unsigned int channel,
void *data );
593 unsigned long frameCount );
599 unsigned int channel,
void *data,
unsigned int stride );
605 unsigned int firstChannel,
void *data,
unsigned int channelCount );
611 unsigned int channel,
void *data );
660 int *callbackResult );
705 void **
buffer,
unsigned long frameCount );
730 const void **
buffer,
unsigned long frameCount );
745 unsigned long frameCount );
Conversion functions used to convert buffers of samples from one format to another.
unsigned long initialFramesInTempOutputBuffer
Definition: pa_process.h:278
unsigned int bytesPerHostOutputSample
Definition: pa_process.h:271
PaUtilZeroer * outputZeroer
Definition: pa_process.h:275
void PaUtil_SetNonInterleavedOutputChannel(PaUtilBufferProcessor *bp, unsigned int channel, void *data)
Definition: pa_process.c:615
unsigned long PaUtil_EndBufferProcessing(PaUtilBufferProcessor *bp, int *streamCallbackResult)
Definition: pa_process.c:1490
void * tempInputBuffer
Definition: pa_process.h:280
unsigned int inputChannelCount
Definition: pa_process.h:263
unsigned int bytesPerUserInputSample
Definition: pa_process.h:265
unsigned long PaUtil_ZeroOutput(PaUtilBufferProcessor *bp, unsigned long frameCount)
Definition: pa_process.c:1813
void PaUtil_SetOutputChannel(PaUtilBufferProcessor *bp, unsigned int channel, void *data, unsigned int stride)
Definition: pa_process.c:582
void PaUtil_Set2ndInterleavedOutputChannels(PaUtilBufferProcessor *bp, unsigned int firstChannel, void *data, unsigned int channelCount)
Definition: pa_process.c:643
void PaUtil_SetNoInput(PaUtilBufferProcessor *bp)
Definition: pa_process.c:459
unsigned long framesInTempOutputBuffer
Definition: pa_process.h:286
void ** tempInputBufferPtrs
Definition: pa_process.h:281
unsigned long framesPerHostBuffer
Definition: pa_process.h:255
int PaUtil_IsBufferProcessorOutputEmpty(PaUtilBufferProcessor *bp)
Definition: pa_process.c:1662
An auxiliary data structure used internally by the buffer processor to represent host input and outpu...
Definition: pa_process.h:242
PaUtilConverter * inputConverter
Definition: pa_process.h:267
Definition: pa_process.h:221
PaStreamCallback * streamCallback
Definition: pa_process.h:311
void PaUtil_Set2ndInputChannel(PaUtilBufferProcessor *bp, unsigned int channel, void *data, unsigned int stride)
Definition: pa_process.c:518
void PaUtil_Set2ndNonInterleavedInputChannel(PaUtilBufferProcessor *bp, unsigned int channel, void *data)
Definition: pa_process.c:551
unsigned long framesInTempInputBuffer
Definition: pa_process.h:282
struct PaUtilChannelDescriptor PaUtilChannelDescriptor
An auxiliary data structure used internally by the buffer processor to represent host input and outpu...
int userOutputSampleFormatIsEqualToHost
Definition: pa_process.h:259
PaStreamCallbackFlags callbackStatusFlags
Definition: pa_process.h:290
int PaStreamCallback(const void *input, void *output, unsigned long frameCount, const PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags statusFlags, void *userData)
Definition: portaudio.h:839
void PaUtil_SetInputChannel(PaUtilBufferProcessor *bp, unsigned int channel, void *data, unsigned int stride)
Definition: pa_process.c:467
PaUtilTriangularDitherGenerator ditherGenerator
Definition: pa_process.h:307
unsigned int bytesPerHostInputSample
Definition: pa_process.h:264
void PaUtil_SetInterleavedInputChannels(PaUtilBufferProcessor *bp, unsigned int firstChannel, void *data, unsigned int channelCount)
Definition: pa_process.c:477
void PaUtil_ResetBufferProcessor(PaUtilBufferProcessor *bp)
Definition: pa_process.c:414
int hostOutputIsInterleaved
Definition: pa_process.h:299
void PaUtil_Set2ndNonInterleavedOutputChannel(PaUtilBufferProcessor *bp, unsigned int channel, void *data)
Definition: pa_process.c:665
unsigned int outputChannelCount
Definition: pa_process.h:270
The portable PortAudio API.
PaUtilZeroer * inputZeroer
Definition: pa_process.h:268
void ** tempOutputBufferPtrs
Definition: pa_process.h:285
void PaUtilConverter(void *destinationBuffer, signed int destinationStride, void *sourceBuffer, signed int sourceStride, unsigned int count, struct PaUtilTriangularDitherGenerator *ditherGenerator)
Definition: pa_converters.h:90
void * data
Definition: pa_process.h:243
unsigned int bytesPerUserOutputSample
Definition: pa_process.h:272
unsigned long PaUtil_CopyInput(PaUtilBufferProcessor *bp, void **buffer, unsigned long frameCount)
Definition: pa_process.c:1668
void PaUtil_Set2ndOutputFrameCount(PaUtilBufferProcessor *bp, unsigned long frameCount)
Definition: pa_process.c:625
void PaUtil_Set2ndInputFrameCount(PaUtilBufferProcessor *bp, unsigned long frameCount)
Definition: pa_process.c:511
void PaUtil_SetOutputFrameCount(PaUtilBufferProcessor *bp, unsigned long frameCount)
Definition: pa_process.c:562
unsigned long PaStreamFlags
Definition: portaudio.h:662
PaUtilHostBufferSizeMode hostBufferSizeMode
Definition: pa_process.h:257
int PaError
Definition: portaudio.h:122
void PaUtil_SetInterleavedOutputChannels(PaUtilBufferProcessor *bp, unsigned int firstChannel, void *data, unsigned int channelCount)
Definition: pa_process.c:593
unsigned long PaStreamCallbackFlags
Definition: portaudio.h:721
void PaUtil_SetNoOutput(PaUtilBufferProcessor *bp)
Definition: pa_process.c:572
void PaUtil_BeginBufferProcessing(PaUtilBufferProcessor *bp, PaStreamCallbackTimeInfo *timeInfo, PaStreamCallbackFlags callbackStatusFlags)
Definition: pa_process.c:675
PaError PaUtil_InitializeBufferProcessor(PaUtilBufferProcessor *bp, int inputChannelCount, PaSampleFormat userInputSampleFormat, PaSampleFormat hostInputSampleFormat, int outputChannelCount, PaSampleFormat userOutputSampleFormat, PaSampleFormat hostOutputSampleFormat, double sampleRate, PaStreamFlags streamFlags, unsigned long framesPerUserBuffer, unsigned long framesPerHostBuffer, PaUtilHostBufferSizeMode hostBufferSizeMode, PaStreamCallback *streamCallback, void *userData)
Definition: pa_process.c:90
unsigned long framesPerUserBuffer
Definition: pa_process.h:254
unsigned long initialFramesInTempInputBuffer
Definition: pa_process.h:277
unsigned long PaSampleFormat
Definition: portaudio.h:489
Definition: pa_process.h:224
PaUtilHostBufferSizeMode
Mode flag passed to PaUtil_InitializeBufferProcessor indicating the type of buffering that the host A...
Definition: pa_process.h:219
void PaUtil_Set2ndOutputChannel(PaUtilBufferProcessor *bp, unsigned int channel, void *data, unsigned int stride)
Definition: pa_process.c:632
unsigned long PaUtil_CopyOutput(PaUtilBufferProcessor *bp, const void **buffer, unsigned long frameCount)
Definition: pa_process.c:1739
Definition: pa_process.h:236
unsigned long framesPerTempBuffer
Definition: pa_process.h:261
Functions for generating dither noise.
char buffer[NUM_BYTES]
Definition: recplay.c:26
int userInputIsInterleaved
Definition: pa_process.h:266
unsigned long PaUtil_GetBufferProcessorOutputLatencyFrames(PaUtilBufferProcessor *bp)
Definition: pa_process.c:443
void * tempOutputBuffer
Definition: pa_process.h:284
int userInputSampleFormatIsEqualToHost
Definition: pa_process.h:260
void PaUtil_Set2ndInterleavedInputChannels(PaUtilBufferProcessor *bp, unsigned int firstChannel, void *data, unsigned int channelCount)
Definition: pa_process.c:528
The main buffer processor data structure.
Definition: pa_process.h:253
double samplePeriod
Definition: pa_process.h:309
int useNonAdaptingProcess
Definition: pa_process.h:258
unsigned int stride
Definition: pa_process.h:244
State needed to generate a dither signal.
Definition: pa_dither.h:61
PaStreamCallbackTimeInfo * timeInfo
Definition: pa_process.h:288
unsigned long PaUtil_GetBufferProcessorInputLatencyFrames(PaUtilBufferProcessor *bp)
Definition: pa_process.c:437
void PaUtil_SetNonInterleavedInputChannel(PaUtilBufferProcessor *bp, unsigned int channel, void *data)
Definition: pa_process.c:500
void PaUtilZeroer(void *destinationBuffer, signed int destinationStride, unsigned int count)
Definition: pa_converters.h:119
void PaUtil_SetInputFrameCount(PaUtilBufferProcessor *bp, unsigned long frameCount)
Definition: pa_process.c:449
int userOutputIsInterleaved
Definition: pa_process.h:273
PaUtilConverter * outputConverter
Definition: pa_process.h:274
void PaUtil_TerminateBufferProcessor(PaUtilBufferProcessor *bp)
Definition: pa_process.c:392
Definition: pa_process.h:227
int hostInputIsInterleaved
Definition: pa_process.h:292
void * userData
Definition: pa_process.h:312
Definition: portaudio.h:708