#include <pthread.h>#include "portaudio.h"#include "pa_util.h"#include <AudioUnit/AudioUnit.h>#include <AudioToolbox/AudioToolbox.h>Go to the source code of this file.
Data Structures | |
| struct | MutexAndBool |
Defines | |
| #define | MIN(a, b) (((a)<(b))?(a):(b)) |
| #define | MAX(a, b) (((a)<(b))?(b):(a)) |
| #define | ERR(mac_error) PaMacCore_SetError(mac_error, __LINE__, 1 ) |
| #define | WARNING(mac_error) PaMacCore_SetError(mac_error, __LINE__, 0 ) |
| #define | INPUT_ELEMENT (1) |
| #define | OUTPUT_ELEMENT (0) |
| #define | MAC_CORE_DEBUG |
| #define | DBUG(MSG) do { printf("||PaMacCore (AUHAL)|| "); printf MSG ; fflush(stdout); } while(0) |
| #define | VDBUG(MSG) |
| #define | VVDBUG(MSG) |
| #define | UNIX_ERR(err) PaMacCore_SetUnixError( err, __LINE__ ) |
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, unsigned long requestedFramesPerBuffer, unsigned long *actualFramesPerBuffer) |
| #define DBUG | ( | MSG | ) | do { printf("||PaMacCore (AUHAL)|| "); printf MSG ; fflush(stdout); } while(0) |
| #define ERR | ( | mac_error | ) | PaMacCore_SetError(mac_error, __LINE__, 1 ) |
| #define INPUT_ELEMENT (1) |
| #define MAC_CORE_DEBUG |
| #define MAX | ( | a, | |||
| b | ) | (((a)<(b))?(b):(a)) |
| #define MIN | ( | a, | |||
| b | ) | (((a)<(b))?(a):(b)) |
| #define OUTPUT_ELEMENT (0) |
| #define UNIX_ERR | ( | err | ) | PaMacCore_SetUnixError( err, __LINE__ ) |
| #define VDBUG | ( | MSG | ) |
| #define VVDBUG | ( | MSG | ) |
| #define WARNING | ( | mac_error | ) | PaMacCore_SetError(mac_error, __LINE__, 0 ) |
| 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 | |||
| ) |
| OSStatus propertyProc | ( | AudioDeviceID | inDevice, | |
| UInt32 | inChannel, | |||
| Boolean | isInput, | |||
| AudioDevicePropertyID | inPropertyID, | |||
| void * | inClientData | |||
| ) |
| PaError setBestFramesPerBuffer | ( | const AudioDeviceID | device, | |
| const bool | isOutput, | |||
| unsigned long | requestedFramesPerBuffer, | |||
| unsigned long * | actualFramesPerBuffer | |||
| ) |
| PaError setBestSampleRateForDevice | ( | const AudioDeviceID | device, | |
| const bool | isOutput, | |||
| const bool | requireExact, | |||
| const Float64 | desiredSrate | |||
| ) |
1.4.7