pa_mac_core.h
Go to the documentation of this file.
#ifndef PA_MAC_CORE_H
#define PA_MAC_CORE_H
/*
* PortAudio Portable Real-Time Audio Library
* Macintosh Core Audio specific extensions
* portaudio.h should be included before this file.
*
* Copyright (c) 2005-2006 Bjorn Roche
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*
* The text above constitutes the entire PortAudio license; however,
* the PortAudio community also makes the following non-binding requests:
*
* Any person wishing to distribute modifications to the Software is
* requested to send the modifications to the original developer so that
* they can be incorporated into the canonical version. It is also
* requested that these non-binding requests be included along with the
* license above.
*/
#include "portaudio.h"
#include <AudioUnit/AudioUnit.h>
#include <AudioToolbox/AudioToolbox.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
unsigned long size;
PaHostApiTypeId hostApiType;
unsigned long version;
unsigned long flags;
SInt32 const * channelMap;
unsigned long channelMapSize;
} PaMacCoreStreamInfo;
void PaMacCore_SetupStreamInfo( PaMacCoreStreamInfo *data, unsigned long flags );
void PaMacCore_SetupChannelMap( PaMacCoreStreamInfo *data, const SInt32 * const channelMap, unsigned long channelMapSize );
AudioDeviceID PaMacCore_GetStreamInputDevice( PaStream* s );
AudioDeviceID PaMacCore_GetStreamOutputDevice( PaStream* s );
const char *PaMacCore_GetChannelName( int device, int channelIndex, bool input );
PaError PaMacCore_GetBufferSizeRange( PaDeviceIndex device,
long *minBufferSizeFrames, long *maxBufferSizeFrames );
#define paMacCoreChangeDeviceParameters (0x01)
#define paMacCoreFailIfConversionRequired (0x02)
#define paMacCoreConversionQualityMin (0x0100)
#define paMacCoreConversionQualityMedium (0x0200)
#define paMacCoreConversionQualityLow (0x0300)
#define paMacCoreConversionQualityHigh (0x0400)
#define paMacCoreConversionQualityMax (0x0000)
#define paMacCorePlayNice (0x00)
#define paMacCorePro (0x01)
#define paMacCoreMinimizeCPUButPlayNice (0x0100)
#define paMacCoreMinimizeCPU (0x0101)
#ifdef __cplusplus
}
#endif
#endif
PaMacCoreStreamInfo::version
unsigned long version
Definition: pa_mac_core.h:67
PaHostApiTypeId
PaHostApiTypeId
Definition: portaudio.h:275
PaMacCoreStreamInfo
Definition: pa_mac_core.h:63
portaudio.h
The portable PortAudio API.
PaMacCore_GetStreamOutputDevice
AudioDeviceID PaMacCore_GetStreamOutputDevice(PaStream *s)
PaMacCoreStreamInfo::hostApiType
PaHostApiTypeId hostApiType
Definition: pa_mac_core.h:66
PaStream
void PaStream
Definition: portaudio.h:635
PaMacCore_GetStreamInputDevice
AudioDeviceID PaMacCore_GetStreamInputDevice(PaStream *s)
PaMacCoreStreamInfo::channelMap
const SInt32 * channelMap
Definition: pa_mac_core.h:69
PaMacCore_GetChannelName
const char * PaMacCore_GetChannelName(int device, int channelIndex, bool input)
PaMacCoreStreamInfo::flags
unsigned long flags
Definition: pa_mac_core.h:68
PaMacCore_SetupChannelMap
void PaMacCore_SetupChannelMap(PaMacCoreStreamInfo *data, const SInt32 *const channelMap, unsigned long channelMapSize)
PaMacCore_GetBufferSizeRange
PaError PaMacCore_GetBufferSizeRange(PaDeviceIndex device, long *minBufferSizeFrames, long *maxBufferSizeFrames)
PaMacCore_SetupStreamInfo
void PaMacCore_SetupStreamInfo(PaMacCoreStreamInfo *data, unsigned long flags)
PaError
int PaError
Definition: portaudio.h:121
PaDeviceIndex
int PaDeviceIndex
Definition: portaudio.h:212
PaMacCoreStreamInfo::channelMapSize
unsigned long channelMapSize
Definition: pa_mac_core.h:70