#include "pa_mac_core_internal.h"
#include <string.h>
#include <libkern/OSAtomic.h>
#include "pa_mac_core.h"
#include "pa_mac_core_utilities.h"
#include "pa_mac_core_blocking.h"
Defines | |
#define | RING_BUFFER_ADVANCE_DENOMINATOR (4) |
#define | PA_AUHAL_SET_LAST_HOST_ERROR(errorCode, errorText) PaUtil_SetLastHostErrorInfo( paInDevelopment, errorCode, errorText ) |
#define | ERR_WRAP(mac_err) do { result = mac_err ; line = __LINE__ ; if ( result != noErr ) goto error ; } while(0) |
#define | RING_BUFFER_EMPTY (1000) |
#define | ERR_WRAP(mac_err) do { result = mac_err ; if ( result != noErr ) return ERR(result) ; } while(0) |
#define | ERR_WRAP(mac_err) do { result = mac_err ; if ( result != noErr ) return ERR(result) ; } while(0) |
Functions | |
PaError | PaMacCore_Initialize (PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index) |
void | PaMacCore_SetupStreamInfo (PaMacCoreStreamInfo *data, const unsigned long flags) |
void | PaMacCore_SetupChannelMap (PaMacCoreStreamInfo *data, const SInt32 *const channelMap, const unsigned long channelMapSize) |
const char * | PaMacCore_GetChannelName (int device, int channelIndex, bool input) |
AudioDeviceID | PaMacCore_GetStreamInputDevice (PaStream *s) |
AudioDeviceID | PaMacCore_GetStreamOutputDevice (PaStream *s) |
#define ERR_WRAP | ( | mac_err | ) | do { result = mac_err ; if ( result != noErr ) return ERR(result) ; } while(0) |
#define ERR_WRAP | ( | mac_err | ) | do { result = mac_err ; if ( result != noErr ) return ERR(result) ; } while(0) |
#define ERR_WRAP | ( | mac_err | ) | do { result = mac_err ; line = __LINE__ ; if ( result != noErr ) goto error ; } while(0) |
#define PA_AUHAL_SET_LAST_HOST_ERROR | ( | errorCode, | |||
errorText | ) | PaUtil_SetLastHostErrorInfo( paInDevelopment, errorCode, errorText ) |
#define RING_BUFFER_ADVANCE_DENOMINATOR (4) |
#define RING_BUFFER_EMPTY (1000) |
const char* PaMacCore_GetChannelName | ( | int | device, | |
int | channelIndex, | |||
bool | input | |||
) |
References PaMacAUHAL::devIds, ERR, paCoreAudio, paNoError, and PaUtil_GetHostApiRepresentation().
Referenced by main().
AudioDeviceID PaMacCore_GetStreamInputDevice | ( | PaStream * | s | ) |
References PaMacCoreStream::inputDevice, and VVDBUG.
AudioDeviceID PaMacCore_GetStreamOutputDevice | ( | PaStream * | s | ) |
References PaMacCoreStream::outputDevice, and VVDBUG.
PaError PaMacCore_Initialize | ( | PaUtilHostApiRepresentation ** | hostApi, | |
PaHostApiIndex | index | |||
) |
void PaMacCore_SetupChannelMap | ( | PaMacCoreStreamInfo * | data, | |
const SInt32 *const | channelMap, | |||
const unsigned long | channelMapSize | |||
) |
References PaMacCoreStreamInfo::channelMap, and PaMacCoreStreamInfo::channelMapSize.
Referenced by main().
void PaMacCore_SetupStreamInfo | ( | PaMacCoreStreamInfo * | data, | |
const unsigned long | flags | |||
) |