}
return osErr;
}
-#endif
+#endif /* PA_NEW_HAL */
+
/* ================================================================================= */
static OSStatus QueryUInt32DeviceProperty( AudioDeviceID deviceID, Boolean isInput, AudioDevicePropertyID propertyID, UInt32 *outValue )
{
}
return osErr;
}
-#endif
+#endif /* PA_NEW_HAL */
/* ================================================================================= */
/*
return noErr;
}
-#endif
+#endif /* PA_NEW_HAL */
/*
* Called by the AudioUnit API to process audio from the sound card.
&stream->inputRingBuffer,
&size,
(void *)&data );
-#endif
+#endif /* PA_NEW_HAL */
if( err == RING_BUFFER_EMPTY )
{ /* the ring buffer callback underflowed */
err = 0;
&stream->inputRingBuffer,
&size,
(void *)data );
-#endif
+#endif /* PA_NEW_HAL */
if( err != RING_BUFFER_EMPTY )
ERR( err );
if( err != noErr && err != RING_BUFFER_EMPTY )
return AudioObjectGetPropertyData(kAudioObjectSystemObject, &address, 0, NULL, ioPropertyDataSize, outPropertyData);
#else
return AudioHardwareGetProperty(inPropertyID, ioPropertyDataSize, outPropertyData);
-#endif
+#endif /* PA_NEW_HAL */
}
OSStatus pa_AudioHardwareGetPropertySize(
return AudioObjectGetPropertyDataSize(kAudioObjectSystemObject, &address, 0, NULL, outSize);
#else
return AudioHardwareGetPropertyInfo(inPropertyID, outSize, NULL);
-#endif
+#endif /* PA_NEW_HAL */
}
OSStatus pa_AudioDeviceGetProperty(
return AudioObjectGetPropertyData(inDevice, &address, 0, NULL, ioPropertyDataSize, outPropertyData);
#else
return AudioDeviceGetProperty(inDevice, inChannel, isInput, inPropertyID, ioPropertyDataSize, outPropertyData);
-#endif
+#endif /* PA_NEW_HAL */
}
OSStatus pa_AudioDeviceSetProperty(
return AudioObjectSetPropertyData(inDevice, &address, 0, NULL, inPropertyDataSize, inPropertyData);
#else
return AudioDeviceSetProperty(inDevice, inWhen, inChannel, isInput, inPropertyID, inPropertyDataSize, inPropertyData);
-#endif
+#endif /* PA_NEW_HAL */
}
OSStatus pa_AudioDeviceGetPropertySize(
return AudioObjectGetPropertyDataSize(inDevice, &address, 0, NULL, outSize);
#else
return AudioDeviceGetPropertyInfo(inDevice, inChannel, isInput, inPropertyID, outSize, NULL);
-#endif
+#endif /* PA_NEW_HAL */
}
OSStatus pa_AudioDeviceAddPropertyListener(
return AudioObjectAddPropertyListener(inDevice, &address, inProc, inClientData);
#else
return AudioDeviceAddPropertyListener(inDevice, inChannel, isInput, inPropertyID, inProc, inClientData);
-#endif
+#endif /* PA_NEW_HAL */
}
OSStatus pa_AudioDeviceRemovePropertyListener(
return AudioObjectRemovePropertyListener(inDevice, &address, inProc, inClientData);
#else
return AudioDeviceRemovePropertyListener(inDevice, inChannel, isInput, inPropertyID, inProc);
-#endif
+#endif /* PA_NEW_HAL */
}
OSStatus pa_AudioStreamGetProperty(
return AudioObjectGetPropertyData(inStream, &address, 0, NULL, ioPropertyDataSize, outPropertyData);
#else
return AudioStreamGetProperty(inStream, inChannel, inPropertyID, ioPropertyDataSize, outPropertyData);
-#endif
+#endif /* PA_NEW_HAL */
}
PaError PaMacCore_SetUnixError( int err, int line )
// this is where we would set the condition variable
return noErr;
}
-#endif
+#endif /* PA_NEW_HAL */
/* sets the value of the given property and waits for the change to
be acknowledged, and returns the final value, which is not guaranteed
return 0;
}
-#endif
+#endif /* PA_NEW_HAL */
int initializeXRunListenerList( void )
{
typedef AudioObjectPropertyListenerProc pa_AudioDevicePropertyListenerProc;
#else
typedef AudioDevicePropertyListenerProc pa_AudioDevicePropertyListenerProc;
-#endif
+#endif /* PA_NEW_HAL */
OSStatus pa_AudioHardwareGetProperty(
AudioHardwarePropertyID inPropertyID,
UInt32* ioPropertyDataSize,
void* outPropertyData);
+
OSStatus pa_AudioHardwareGetPropertySize(
AudioHardwarePropertyID inPropertyID,
UInt32* outSize);
+
OSStatus pa_AudioDeviceGetProperty(
AudioDeviceID inDevice,
UInt32 inChannel,
AudioDevicePropertyID inPropertyID,
UInt32* ioPropertyDataSize,
void* outPropertyData);
+
OSStatus pa_AudioDeviceSetProperty(
AudioDeviceID inDevice,
const AudioTimeStamp* inWhen,
AudioDevicePropertyID inPropertyID,
UInt32 inPropertyDataSize,
const void* inPropertyData);
+
OSStatus pa_AudioDeviceGetPropertySize(
AudioDeviceID inDevice,
UInt32 inChannel,
Boolean isInput,
AudioDevicePropertyID inPropertyID,
UInt32* outSize);
+
OSStatus pa_AudioDeviceAddPropertyListener(
AudioDeviceID inDevice,
UInt32 inChannel,
AudioDevicePropertyID inPropertyID,
pa_AudioDevicePropertyListenerProc inProc,
void* inClientData);
+
OSStatus pa_AudioDeviceRemovePropertyListener(
AudioDeviceID inDevice,
UInt32 inChannel,
AudioDevicePropertyID inPropertyID,
pa_AudioDevicePropertyListenerProc inProc,
void* inClientData);
+
OSStatus pa_AudioStreamGetProperty(
AudioStreamID inStream,
UInt32 inChannel,
Boolean isInput,
AudioDevicePropertyID inPropertyID,
void* inClientData );
-#endif
+#endif /* PA_NEW_HAL */
/* sets the value of the given property and waits for the change to
be acknowledged, and returns the final value, which is not guaranteed
Boolean isInput,
AudioDevicePropertyID inPropertyID,
void* inClientData ) ;
-#endif
+#endif /* PA_NEW_HAL */
/** returns zero on success or a unix style error code. */
int initializeXRunListenerList( void );