#[non_exhaustive]pub enum ObjectKind {
PlugIn,
Box,
Device,
Stream,
Control,
}Expand description
Which layer of the AudioServerPlugin object tree an id sits at.
The values mirror the kAudio*ClassID four-character codes from
<CoreAudio/AudioHardwareBase.h>. The framework’s property
dispatch reads this off an id to pick the property table that
applies — global object properties, plug-in properties, device
properties, and so on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PlugIn
kAudioPlugInClassID ('aplg') — the plug-in object.
Box
kAudioBoxClassID ('abox') — a box: a container that
groups devices, modelling a physical or virtual enclosure.
Device
kAudioDeviceClassID ('adev') — a device exposed to the
system as an audio endpoint.
Stream
kAudioStreamClassID ('astr') — one direction of audio
flow on a device.
Control
kAudioControlClassID ('actl') — a control (volume, mute,
data source, …) attached to a device or stream.
Implementations§
Source§impl ObjectKind
impl ObjectKind
Sourcepub const fn class_id(self) -> FourCharCode
pub const fn class_id(self) -> FourCharCode
The kAudio*ClassID four-character code for this kind.
Sourcepub const fn base_class_id(self) -> FourCharCode
pub const fn base_class_id(self) -> FourCharCode
The kAudio*ClassID of this kind’s base class, or None for
the root of the hierarchy.
Core Audio’s kAudioObjectPropertyBaseClass walks this
chain; every class but AudioObject itself ultimately bases
on kAudioObjectClassID ('aobj').
Trait Implementations§
Source§impl Clone for ObjectKind
impl Clone for ObjectKind
Source§fn clone(&self) -> ObjectKind
fn clone(&self) -> ObjectKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectKind
impl Debug for ObjectKind
Source§impl Hash for ObjectKind
impl Hash for ObjectKind
Source§impl PartialEq for ObjectKind
impl PartialEq for ObjectKind
Source§fn eq(&self, other: &ObjectKind) -> bool
fn eq(&self, other: &ObjectKind) -> bool
self and other values to be equal, and is used by ==.