#[repr(transparent)]pub struct AudioLevelControlTransferFunction(pub u32);Available on crate feature
AudioHardwareDeprecated only.Expand description
The following constants are the only supported values for a volume control’s transfer function.
The transfer function implemented in the volume control works by raising the scalar value to an exponent to map it into the decibel range. The constants in this enum express the exponent used in the name as a quotient. For example, kAudioLevelControlTranferFunction3Over4 represents the exponent 0.75.
See also Apple’s documentation
Tuple Fields§
§0: u32Implementations§
Source§impl AudioLevelControlTransferFunction
impl AudioLevelControlTransferFunction
pub const TranferFunctionLinear: Self
pub const TranferFunction1Over3: Self
pub const TranferFunction1Over2: Self
pub const TranferFunction3Over4: Self
pub const TranferFunction3Over2: Self
pub const TranferFunction2Over1: Self
pub const TranferFunction3Over1: Self
pub const TranferFunction4Over1: Self
pub const TranferFunction5Over1: Self
pub const TranferFunction6Over1: Self
pub const TranferFunction7Over1: Self
pub const TranferFunction8Over1: Self
pub const TranferFunction9Over1: Self
pub const TranferFunction10Over1: Self
pub const TranferFunction11Over1: Self
pub const TranferFunction12Over1: Self
Trait Implementations§
Source§impl Clone for AudioLevelControlTransferFunction
impl Clone for AudioLevelControlTransferFunction
Source§fn clone(&self) -> AudioLevelControlTransferFunction
fn clone(&self) -> AudioLevelControlTransferFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Encode for AudioLevelControlTransferFunction
Available on crate feature objc2 only.
impl Encode for AudioLevelControlTransferFunction
Available on crate feature
objc2 only.Source§impl Ord for AudioLevelControlTransferFunction
impl Ord for AudioLevelControlTransferFunction
Source§fn cmp(&self, other: &AudioLevelControlTransferFunction) -> Ordering
fn cmp(&self, other: &AudioLevelControlTransferFunction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AudioLevelControlTransferFunction
impl PartialEq for AudioLevelControlTransferFunction
Source§fn eq(&self, other: &AudioLevelControlTransferFunction) -> bool
fn eq(&self, other: &AudioLevelControlTransferFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AudioLevelControlTransferFunction
impl PartialOrd for AudioLevelControlTransferFunction
Source§impl RefEncode for AudioLevelControlTransferFunction
Available on crate feature objc2 only.
impl RefEncode for AudioLevelControlTransferFunction
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for AudioLevelControlTransferFunction
impl Eq for AudioLevelControlTransferFunction
impl StructuralPartialEq for AudioLevelControlTransferFunction
Auto Trait Implementations§
impl Freeze for AudioLevelControlTransferFunction
impl RefUnwindSafe for AudioLevelControlTransferFunction
impl Send for AudioLevelControlTransferFunction
impl Sync for AudioLevelControlTransferFunction
impl Unpin for AudioLevelControlTransferFunction
impl UnwindSafe for AudioLevelControlTransferFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.