PortAudio  2.0
Data Fields
PaUtilBufferProcessor Struct Reference

The main buffer processor data structure. More...

#include <pa_process.h>

Data Fields

unsigned long framesPerUserBuffer
 
unsigned long framesPerHostBuffer
 
PaUtilHostBufferSizeMode hostBufferSizeMode
 
int useNonAdaptingProcess
 
int userOutputSampleFormatIsEqualToHost
 
int userInputSampleFormatIsEqualToHost
 
unsigned long framesPerTempBuffer
 
unsigned int inputChannelCount
 
unsigned int bytesPerHostInputSample
 
unsigned int bytesPerUserInputSample
 
int userInputIsInterleaved
 
PaUtilConverterinputConverter
 
PaUtilZeroerinputZeroer
 
unsigned int outputChannelCount
 
unsigned int bytesPerHostOutputSample
 
unsigned int bytesPerUserOutputSample
 
int userOutputIsInterleaved
 
PaUtilConverteroutputConverter
 
PaUtilZeroeroutputZeroer
 
unsigned long initialFramesInTempInputBuffer
 
unsigned long initialFramesInTempOutputBuffer
 
void * tempInputBuffer
 
void ** tempInputBufferPtrs
 
unsigned long framesInTempInputBuffer
 
void * tempOutputBuffer
 
void ** tempOutputBufferPtrs
 
unsigned long framesInTempOutputBuffer
 
PaStreamCallbackTimeInfotimeInfo
 
PaStreamCallbackFlags callbackStatusFlags
 
int hostInputIsInterleaved
 
unsigned long hostInputFrameCount [2]
 
PaUtilChannelDescriptorhostInputChannels [2]
 
int hostOutputIsInterleaved
 
unsigned long hostOutputFrameCount [2]
 
PaUtilChannelDescriptorhostOutputChannels [2]
 
PaUtilTriangularDitherGenerator ditherGenerator
 
double samplePeriod
 
PaStreamCallbackstreamCallback
 
void * userData
 

Detailed Description

The main buffer processor data structure.

Allocate one of these, initialize it with PaUtil_InitializeBufferProcessor and terminate it with PaUtil_TerminateBufferProcessor.

Field Documentation

unsigned int PaUtilBufferProcessor::bytesPerHostInputSample
unsigned int PaUtilBufferProcessor::bytesPerHostOutputSample
unsigned int PaUtilBufferProcessor::bytesPerUserInputSample
unsigned int PaUtilBufferProcessor::bytesPerUserOutputSample
PaStreamCallbackFlags PaUtilBufferProcessor::callbackStatusFlags
PaUtilTriangularDitherGenerator PaUtilBufferProcessor::ditherGenerator
unsigned long PaUtilBufferProcessor::framesInTempInputBuffer

frames remaining in input buffer from previous adaption iteration

Referenced by PaUtil_BeginBufferProcessing(), PaUtil_InitializeBufferProcessor(), and PaUtil_ResetBufferProcessor().

unsigned long PaUtilBufferProcessor::framesInTempOutputBuffer

frames remaining in input buffer from previous adaption iteration

Referenced by PaUtil_BeginBufferProcessing(), PaUtil_InitializeBufferProcessor(), PaUtil_IsBufferProcessorOutputEmpty(), and PaUtil_ResetBufferProcessor().

unsigned long PaUtilBufferProcessor::framesPerHostBuffer
unsigned long PaUtilBufferProcessor::framesPerTempBuffer
unsigned long PaUtilBufferProcessor::framesPerUserBuffer
PaUtilHostBufferSizeMode PaUtilBufferProcessor::hostBufferSizeMode
PaUtilChannelDescriptor* PaUtilBufferProcessor::hostInputChannels[2]
unsigned long PaUtilBufferProcessor::hostInputFrameCount[2]
int PaUtilBufferProcessor::hostInputIsInterleaved
PaUtilChannelDescriptor* PaUtilBufferProcessor::hostOutputChannels[2]

pointers to arrays of channel descriptors. pointers are NULL for half-duplex input processing. hostOutputChannels[i].data is NULL when the caller calls PaUtil_SetNoOutput()

Referenced by PaUtil_CopyOutput(), PaUtil_EndBufferProcessing(), PaUtil_InitializeBufferProcessor(), PaUtil_Set2ndOutputChannel(), PaUtil_SetNoOutput(), PaUtil_SetOutputChannel(), PaUtil_TerminateBufferProcessor(), and PaUtil_ZeroOutput().

unsigned long PaUtilBufferProcessor::hostOutputFrameCount[2]
int PaUtilBufferProcessor::hostOutputIsInterleaved
unsigned long PaUtilBufferProcessor::initialFramesInTempInputBuffer
unsigned long PaUtilBufferProcessor::initialFramesInTempOutputBuffer
unsigned int PaUtilBufferProcessor::inputChannelCount
PaUtilConverter* PaUtilBufferProcessor::inputConverter
PaUtilZeroer* PaUtilBufferProcessor::inputZeroer
unsigned int PaUtilBufferProcessor::outputChannelCount
PaUtilConverter* PaUtilBufferProcessor::outputConverter
PaUtilZeroer* PaUtilBufferProcessor::outputZeroer
double PaUtilBufferProcessor::samplePeriod
PaStreamCallback* PaUtilBufferProcessor::streamCallback
void* PaUtilBufferProcessor::tempInputBuffer

used for slips, block adaption, and conversion.

Referenced by PaUtil_InitializeBufferProcessor(), PaUtil_ResetBufferProcessor(), and PaUtil_TerminateBufferProcessor().

void** PaUtilBufferProcessor::tempInputBufferPtrs

storage for non-interleaved buffer pointers, NULL for interleaved user input

Referenced by PaUtil_InitializeBufferProcessor(), and PaUtil_TerminateBufferProcessor().

void* PaUtilBufferProcessor::tempOutputBuffer

used for slips, block adaption, and conversion.

Referenced by PaUtil_InitializeBufferProcessor(), PaUtil_ResetBufferProcessor(), and PaUtil_TerminateBufferProcessor().

void** PaUtilBufferProcessor::tempOutputBufferPtrs

storage for non-interleaved buffer pointers, NULL for interleaved user output

Referenced by PaUtil_InitializeBufferProcessor(), and PaUtil_TerminateBufferProcessor().

PaStreamCallbackTimeInfo* PaUtilBufferProcessor::timeInfo
int PaUtilBufferProcessor::useNonAdaptingProcess
void* PaUtilBufferProcessor::userData
int PaUtilBufferProcessor::userInputIsInterleaved
int PaUtilBufferProcessor::userInputSampleFormatIsEqualToHost
int PaUtilBufferProcessor::userOutputIsInterleaved
int PaUtilBufferProcessor::userOutputSampleFormatIsEqualToHost

The documentation for this struct was generated from the following file: