#[repr(transparent)]pub struct AudioBalanceFadeType(pub u32);
Available on crate feature
AudioFormat
only.Expand description
used for mType field of AudioBalanceFade struct
the gain value never exceeds 1.0, the opposite channel fades out. This can reduce overall loudness when the balance or fade is not in the center.
The overall loudness remains constant, but gain can exceed 1.0. the gain value is 1.0 when the balance and fade are in the center. From there they can increase to +3dB (1.414) and decrease to -inf dB (0.0).
See also Apple’s documentation
Tuple Fields§
§0: u32
Implementations§
Source§impl AudioBalanceFadeType
impl AudioBalanceFadeType
pub const MaxUnityGain: Self
pub const EqualPower: Self
Trait Implementations§
Source§impl Clone for AudioBalanceFadeType
impl Clone for AudioBalanceFadeType
Source§fn clone(&self) -> AudioBalanceFadeType
fn clone(&self) -> AudioBalanceFadeType
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 Debug for AudioBalanceFadeType
impl Debug for AudioBalanceFadeType
Source§impl Encode for AudioBalanceFadeType
impl Encode for AudioBalanceFadeType
Source§impl Hash for AudioBalanceFadeType
impl Hash for AudioBalanceFadeType
Source§impl Ord for AudioBalanceFadeType
impl Ord for AudioBalanceFadeType
Source§fn cmp(&self, other: &AudioBalanceFadeType) -> Ordering
fn cmp(&self, other: &AudioBalanceFadeType) -> 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 AudioBalanceFadeType
impl PartialEq for AudioBalanceFadeType
Source§impl PartialOrd for AudioBalanceFadeType
impl PartialOrd for AudioBalanceFadeType
Source§impl RefEncode for AudioBalanceFadeType
impl RefEncode for AudioBalanceFadeType
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 AudioBalanceFadeType
impl Eq for AudioBalanceFadeType
impl StructuralPartialEq for AudioBalanceFadeType
Auto Trait Implementations§
impl Freeze for AudioBalanceFadeType
impl RefUnwindSafe for AudioBalanceFadeType
impl Send for AudioBalanceFadeType
impl Sync for AudioBalanceFadeType
impl Unpin for AudioBalanceFadeType
impl UnwindSafe for AudioBalanceFadeType
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.