|
PortAudio
2.0
|
#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"Macros | |
| #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 | HOST_TIME_TO_PA_TIME(x) ( AudioConvertHostTimeToNanos( (x) ) * 1.0E-09) /* convert to nanoseconds and then to seconds */ |
| #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 ; line = __LINE__ ; if ( result != noErr ) goto error ; } 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 ; if ( result != noErr ) return ERR(result) ; } while(0) |
| #define HOST_TIME_TO_PA_TIME | ( | x | ) | ( AudioConvertHostTimeToNanos( (x) ) * 1.0E-09) /* convert to nanoseconds and then to seconds */ |
| #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().
| 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.
| void PaMacCore_SetupStreamInfo | ( | PaMacCoreStreamInfo * | data, |
| const unsigned long | flags | ||
| ) |
1.8.1.1