#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
use objc2_core_foundation::*;
use crate::*;
#[cfg(feature = "AudioHardware")]
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct AudioServerPlugInCustomPropertyInfo {
pub mSelector: AudioObjectPropertySelector,
pub mPropertyDataType: u32,
pub mQualifierDataType: u32,
}
#[cfg(all(feature = "AudioHardware", feature = "objc2"))]
unsafe impl Encode for AudioServerPlugInCustomPropertyInfo {
const ENCODING: Encoding = Encoding::Struct(
"AudioServerPlugInCustomPropertyInfo",
&[
<AudioObjectPropertySelector>::ENCODING,
<u32>::ENCODING,
<u32>::ENCODING,
],
);
}
#[cfg(all(feature = "AudioHardware", feature = "objc2"))]
unsafe impl RefEncode for AudioServerPlugInCustomPropertyInfo {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[cfg(feature = "libc")]
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct AudioServerPlugInClientInfo {
pub mClientID: u32,
pub mProcessID: libc::pid_t,
pub mIsNativeEndian: Boolean,
pub mBundleID: *const CFString,
}
#[cfg(all(feature = "libc", feature = "objc2"))]
unsafe impl Encode for AudioServerPlugInClientInfo {
const ENCODING: Encoding = Encoding::Struct(
"AudioServerPlugInClientInfo",
&[
<u32>::ENCODING,
<libc::pid_t>::ENCODING,
<Boolean>::ENCODING,
<*const CFString>::ENCODING,
],
);
}
#[cfg(all(feature = "libc", feature = "objc2"))]
unsafe impl RefEncode for AudioServerPlugInClientInfo {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[cfg(feature = "AudioHardware")]
pub const kAudioObjectPlugInObject: AudioObjectID = 1;
#[cfg(feature = "AudioHardware")]
pub const kAudioServerPlugInHostClientID: AudioObjectID = 0;
pub type AudioServerPlugInCustomPropertyDataType = u32;
pub const kAudioServerPlugInCustomPropertyDataTypeNone: AudioServerPlugInCustomPropertyDataType = 0;
pub const kAudioServerPlugInCustomPropertyDataTypeCFString:
AudioServerPlugInCustomPropertyDataType = 0x63667374;
pub const kAudioServerPlugInCustomPropertyDataTypeCFPropertyList:
AudioServerPlugInCustomPropertyDataType = 0x706c7374;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AudioServerPlugInIOOperation(pub u32);
impl AudioServerPlugInIOOperation {
#[doc(alias = "kAudioServerPlugInIOOperationThread")]
pub const Thread: Self = Self(0x74687264);
#[doc(alias = "kAudioServerPlugInIOOperationCycle")]
pub const Cycle: Self = Self(0x6379636c);
#[doc(alias = "kAudioServerPlugInIOOperationReadInput")]
pub const ReadInput: Self = Self(0x72656164);
#[doc(alias = "kAudioServerPlugInIOOperationConvertInput")]
pub const ConvertInput: Self = Self(0x63696e70);
#[doc(alias = "kAudioServerPlugInIOOperationProcessInput")]
pub const ProcessInput: Self = Self(0x70696e70);
#[doc(alias = "kAudioServerPlugInIOOperationProcessOutput")]
pub const ProcessOutput: Self = Self(0x706f7574);
#[doc(alias = "kAudioServerPlugInIOOperationMixOutput")]
pub const MixOutput: Self = Self(0x6d69786f);
#[doc(alias = "kAudioServerPlugInIOOperationProcessMix")]
pub const ProcessMix: Self = Self(0x706d6978);
#[doc(alias = "kAudioServerPlugInIOOperationConvertMix")]
pub const ConvertMix: Self = Self(0x636d6978);
#[doc(alias = "kAudioServerPlugInIOOperationWriteMix")]
pub const WriteMix: Self = Self(0x72697465);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for AudioServerPlugInIOOperation {
const ENCODING: Encoding = u32::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for AudioServerPlugInIOOperation {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[cfg(feature = "AudioHardware")]
pub const kAudioObjectPropertyCustomPropertyInfoList: AudioObjectPropertySelector = 0x63757374;
#[cfg(feature = "AudioHardware")]
pub const kAudioPlugInPropertyResourceBundle: AudioObjectPropertySelector = 0x72737263;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct AudioDeviceClockAlgorithmSelector(pub u32);
impl AudioDeviceClockAlgorithmSelector {
#[doc(alias = "kAudioDeviceClockAlgorithmRaw")]
pub const AlgorithmRaw: Self = Self(0x72617777);
#[doc(alias = "kAudioDeviceClockAlgorithmSimpleIIR")]
pub const AlgorithmSimpleIIR: Self = Self(0x69697266);
#[doc(alias = "kAudioDeviceClockAlgorithm12PtMovingWindowAverage")]
pub const Algorithm12PtMovingWindowAverage: Self = Self(0x6d617667);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for AudioDeviceClockAlgorithmSelector {
const ENCODING: Encoding = u32::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for AudioDeviceClockAlgorithmSelector {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[cfg(feature = "AudioHardware")]
pub const kAudioDevicePropertyZeroTimeStampPeriod: AudioObjectPropertySelector = 0x72696e67;
#[cfg(feature = "AudioHardware")]
pub const kAudioDevicePropertyClockAlgorithm: AudioObjectPropertySelector = 0x636c6f6b;
#[cfg(feature = "AudioHardware")]
pub const kAudioDevicePropertyClockIsStable: AudioObjectPropertySelector = 0x63737462;