61 #ifndef PA_MAC_CORE_INTERNAL_H__
62 #define PA_MAC_CORE_INTERNAL_H__
64 #include <CoreAudio/CoreAudio.h>
65 #include <CoreServices/CoreServices.h>
66 #include <AudioUnit/AudioUnit.h>
67 #include <AudioToolbox/AudioToolbox.h>
93 #define RING_BUFFER_ADVANCE_DENOMINATOR (4)
struct PaMacCoreDeviceProperties PaMacCoreDeviceProperties
Float64 samplePeriod
Definition: pa_mac_core_internal.h:129
Single-reader single-writer lock-free ring buffer.
size_t outputFramesPerBuffer
Definition: pa_mac_core_internal.h:149
long devCount
Definition: pa_mac_core_internal.h:109
AudioDeviceID defaultIn
Definition: pa_mac_core_internal.h:111
int PaHostApiIndex
Definition: portaudio.h:240
PaError PaMacCore_Initialize(PaUtilHostApiRepresentation **hostApi, PaHostApiIndex index)
Definition: pa_mac_core.c:721
Definition: pa_cpuload.h:56
Definition: pa_mac_core_internal.h:116
AudioUnit outputUnit
Definition: pa_mac_core_internal.h:143
void PaStream
Definition: portaudio.h:644
Definition: pa_ringbuffer.h:93
Float64 timestampOffsetCombined
Definition: pa_mac_core_internal.h:181
Float64 timestampOffsetInputDevice
Definition: pa_mac_core_internal.h:182
AudioDeviceID * devIds
Definition: pa_mac_core_internal.h:110
volatile uint32_t xrunFlags
Definition: pa_mac_core_internal.h:159
signed long GetStreamWriteAvailable(PaStream *stream)
Definition: pa_mac_core_blocking.c:634
PaError ReadStream(PaStream *stream, void *buffer, unsigned long framesRequested)
Definition: pa_mac_core_blocking.c:423
Float64 timestampOffsetCombined_ioProcCopy
Definition: pa_mac_core_internal.h:187
double sampleRate
Definition: pa_mac_core_internal.h:172
struct PaMacCoreStream PaMacCoreStream
Float64 timestampOffsetOutputDevice_ioProcCopy
Definition: pa_mac_core_internal.h:189
Buffer Processor prototypes. A Buffer Processor performs buffer length adaption, coordinates sample f...
Definition: pa_stream.h:67
Allocation Group prototypes. An Allocation Group makes it easy to allocate multiple blocks of memory ...
Interfaces and representation structures used by pa_front.c to manage and communicate with host API i...
UInt32 deviceLatency
Definition: pa_mac_core_internal.h:122
AudioDeviceID inputDevice
Definition: pa_mac_core_internal.h:144
The portable PortAudio API.
Definition: pa_mac_core_blocking.h:79
AudioBufferList inputAudioBufferList
Definition: pa_mac_core_internal.h:156
size_t userInChan
Definition: pa_mac_core_internal.h:146
PaUtilStreamInterface blockingStreamInterface
Definition: pa_mac_core_internal.h:104
Float64 timestampOffsetOutputDevice
Definition: pa_mac_core_internal.h:183
Stream interfaces, representation structures and helper functions used to interface between pa_front...
PaMacBlio blio
Definition: pa_mac_core_internal.h:150
Definition: pa_mac_core_internal.h:134
PaError WriteStream(PaStream *stream, const void *buffer, unsigned long framesRequested)
Definition: pa_mac_core_blocking.c:502
UInt32 safetyOffset
Definition: pa_mac_core_internal.h:119
Definition: pa_allocation.h:65
AudioDeviceID outputDevice
Definition: pa_mac_core_internal.h:145
PaUtilCpuLoadMeasurer cpuLoadMeasurer
Definition: pa_mac_core_internal.h:137
int PaError
Definition: portaudio.h:122
Definition: pa_stream.h:147
size_t inputFramesPerBuffer
Definition: pa_mac_core_internal.h:148
AudioTimeStamp startTime
Definition: pa_mac_core_internal.h:157
bool bufferProcessorIsInitialized
Definition: pa_mac_core_internal.h:141
pthread_mutex_t timingInformationMutex
Definition: pa_mac_core_internal.h:178
Definition: pa_mac_core_internal.h:165
Definition: pa_mac_core_internal.h:100
PaMacCoreDeviceProperties outputProperties
Definition: pa_mac_core_internal.h:174
PaMacCoreDeviceProperties inputProperties
Definition: pa_mac_core_internal.h:173
Definition: pa_mac_core_internal.h:161
Definition: pa_mac_core_internal.h:163
PaUtilBufferProcessor bufferProcessor
Definition: pa_mac_core_internal.h:138
signed long GetStreamReadAvailable(PaStream *stream)
Definition: pa_mac_core_blocking.c:625
Prototypes for utility functions used by PortAudio implementations.
UInt32 bufferFrameSize
Definition: pa_mac_core_internal.h:120
size_t userOutChan
Definition: pa_mac_core_internal.h:147
PaUtilStreamRepresentation streamRepresentation
Definition: pa_mac_core_internal.h:136
PaUtilAllocationGroup * allocations
Definition: pa_mac_core_internal.h:106
char buffer[NUM_BYTES]
Definition: recplay.c:26
Float64 timestampOffsetInputDevice_ioProcCopy
Definition: pa_mac_core_internal.h:188
The main buffer processor data structure.
Definition: pa_process.h:253
Functions to assist in measuring the CPU utilization of a callback stream. Used to implement the Pa_G...
enum PaMacCoreStream::@0 state
AudioConverterRef inputSRConverter
Definition: pa_mac_core_internal.h:154
AudioDeviceID defaultOut
Definition: pa_mac_core_internal.h:112
PaUtilStreamInterface callbackStreamInterface
Definition: pa_mac_core_internal.h:103
Definition: pa_hostapi.h:201
Definition: pa_mac_core_internal.h:170
Float64 sampleRate
Definition: pa_mac_core_internal.h:128
AudioUnit inputUnit
Definition: pa_mac_core_internal.h:142
int timingInformationMutexIsInitialized
Definition: pa_mac_core_internal.h:177
PaUtilRingBuffer inputRingBuffer
Definition: pa_mac_core_internal.h:152
PaUtilHostApiRepresentation inheritedHostApiRep
Definition: pa_mac_core_internal.h:102