pa_mac_core_utilities.c File Reference

#include "pa_mac_core_utilities.h"

Functions

PaError PaMacCore_SetUnixError (int err, int line)
PaError PaMacCore_SetError (OSStatus error, int line, int isError)
long computeRingBufferSize (const PaStreamParameters *inputParameters, const PaStreamParameters *outputParameters, long inputFramesPerBuffer, long outputFramesPerBuffer, double sampleRate)
OSStatus propertyProc (AudioDeviceID inDevice, UInt32 inChannel, Boolean isInput, AudioDevicePropertyID inPropertyID, void *inClientData)
PaError AudioDeviceSetPropertyNowAndWaitForChange (AudioDeviceID inDevice, UInt32 inChannel, Boolean isInput, AudioDevicePropertyID inPropertyID, UInt32 inPropertyDataSize, const void *inPropertyData, void *outPropertyData)
PaError setBestSampleRateForDevice (const AudioDeviceID device, const bool isOutput, const bool requireExact, const Float64 desiredSrate)
PaError setBestFramesPerBuffer (const AudioDeviceID device, const bool isOutput, UInt32 requestedFramesPerBuffer, UInt32 *actualFramesPerBuffer)

Detailed Description


Function Documentation

PaError AudioDeviceSetPropertyNowAndWaitForChange ( AudioDeviceID  inDevice,
UInt32  inChannel,
Boolean  isInput,
AudioDevicePropertyID  inPropertyID,
UInt32  inPropertyDataSize,
const void *  inPropertyData,
void *  outPropertyData 
)
long computeRingBufferSize ( const PaStreamParameters inputParameters,
const PaStreamParameters outputParameters,
long  inputFramesPerBuffer,
long  outputFramesPerBuffer,
double  sampleRate 
)
PaError PaMacCore_SetError ( OSStatus  error,
int  line,
int  isError 
)
PaError PaMacCore_SetUnixError ( int  err,
int  line 
)

Map Unix error to PaError. Pretty much the only one that maps is ENOMEM.

References DBUG, paCoreAudio, paInsufficientMemory, paInternalError, paNoError, and PaUtil_SetLastHostErrorInfo().

Referenced by initializeBlioRingBuffers().

OSStatus propertyProc ( AudioDeviceID  inDevice,
UInt32  inChannel,
Boolean  isInput,
AudioDevicePropertyID  inPropertyID,
void *  inClientData 
)
PaError setBestFramesPerBuffer ( const AudioDeviceID  device,
const bool  isOutput,
UInt32  requestedFramesPerBuffer,
UInt32 *  actualFramesPerBuffer 
)
PaError setBestSampleRateForDevice ( const AudioDeviceID  device,
const bool  isOutput,
const bool  requireExact,
const Float64  desiredSrate 
)

Generated for PortAudio by  doxygen1.6.1