PortAudio 2.0
|
#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) |
PaError AudioDeviceSetPropertyNowAndWaitForChange | ( | AudioDeviceID | inDevice, |
UInt32 | inChannel, | ||
Boolean | isInput, | ||
AudioDevicePropertyID | inPropertyID, | ||
UInt32 | inPropertyDataSize, | ||
const void * | inPropertyData, | ||
void * | outPropertyData | ||
) |
References DBUG, ERR, FALSE, MutexAndBool::mutex, MutexAndBool::once, paInternalError, paNoError, paUnanticipatedHostError, and propertyProc().
Referenced by setBestSampleRateForDevice().
long computeRingBufferSize | ( | const PaStreamParameters * | inputParameters, |
const PaStreamParameters * | outputParameters, | ||
long | inputFramesPerBuffer, | ||
long | outputFramesPerBuffer, | ||
double | sampleRate | ||
) |
References PaStreamParameters::channelCount, MAX, PaStreamParameters::suggestedLatency, VDBUG, and VVDBUG.
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 | ||
) |
References MutexAndBool::mutex, MutexAndBool::once, and TRUE.
Referenced by AudioDeviceSetPropertyNowAndWaitForChange().
PaError setBestFramesPerBuffer | ( | const AudioDeviceID | device, |
const bool | isOutput, | ||
UInt32 | requestedFramesPerBuffer, | ||
UInt32 * | actualFramesPerBuffer | ||
) |
References ERR, paInsufficientMemory, paNoError, and VDBUG.
PaError setBestSampleRateForDevice | ( | const AudioDeviceID | device, |
const bool | isOutput, | ||
const bool | requireExact, | ||
const Float64 | desiredSrate | ||
) |