pa_mac_core.h
Go to the documentation of this file.00001 #ifndef PA_MAC_CORE_H
00002 #define PA_MAC_CORE_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00046 #include "portaudio.h"
00047
00048 #include <AudioUnit/AudioUnit.h>
00049 #include <AudioToolbox/AudioToolbox.h>
00050
00051 #ifdef __cplusplus
00052 extern "C" {
00053 #endif
00054
00055
00063 typedef struct
00064 {
00065 unsigned long size;
00066 PaHostApiTypeId hostApiType;
00067 unsigned long version;
00068 unsigned long flags;
00069 SInt32 const * channelMap;
00070 unsigned long channelMapSize;
00071 } PaMacCoreStreamInfo;
00072
00084 void PaMacCore_SetupStreamInfo( PaMacCoreStreamInfo *data, unsigned long flags );
00085
00091 void PaMacCore_SetupChannelMap( PaMacCoreStreamInfo *data, const SInt32 * const channelMap, unsigned long channelMapSize );
00092
00100 AudioDeviceID PaMacCore_GetStreamInputDevice( PaStream* s );
00101
00109 AudioDeviceID PaMacCore_GetStreamOutputDevice( PaStream* s );
00110
00125 const char *PaMacCore_GetChannelName( int device, int channelIndex, bool input );
00126
00127
00136 PaError PaMacCore_GetBufferSizeRange( PaDeviceIndex device,
00137 long *minBufferSizeFrames, long *maxBufferSizeFrames );
00138
00139
00154 #define paMacCoreChangeDeviceParameters (0x01)
00155
00159 #define paMacCoreFailIfConversionRequired (0x02)
00160
00163 #define paMacCoreConversionQualityMin (0x0100)
00164 #define paMacCoreConversionQualityMedium (0x0200)
00165 #define paMacCoreConversionQualityLow (0x0300)
00166 #define paMacCoreConversionQualityHigh (0x0400)
00167 #define paMacCoreConversionQualityMax (0x0000)
00168
00177 #define paMacCorePlayNice (0x00)
00178
00180 #define paMacCorePro (0x01)
00181
00182 #define paMacCoreMinimizeCPUButPlayNice (0x0100)
00183
00184 #define paMacCoreMinimizeCPU (0x0101)
00185
00186
00187 #ifdef __cplusplus
00188 }
00189 #endif
00191 #endif