#[repr(C)]pub struct AudioBalanceFade {
pub mLeftRightBalance: f32,
pub mBackFrontFade: f32,
pub mType: AudioBalanceFadeType,
pub mChannelLayout: NonNull<AudioChannelLayout>,
}
Available on crate features
AudioFormat
and objc2-core-audio-types
only.Expand description
this struct is used with kAudioFormatProperty_BalanceFade
-1 is full left, 0 is center, +1 is full right
-1 is full rear, 0 is center, +1 is full front
an AudioBalanceFadeType constant
a pointer to an AudioChannelLayout
See also Apple’s documentation
Fields§
§mLeftRightBalance: f32
§mBackFrontFade: f32
§mType: AudioBalanceFadeType
§mChannelLayout: NonNull<AudioChannelLayout>
Trait Implementations§
Source§impl Clone for AudioBalanceFade
impl Clone for AudioBalanceFade
Source§fn clone(&self) -> AudioBalanceFade
fn clone(&self) -> AudioBalanceFade
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 AudioBalanceFade
impl Debug for AudioBalanceFade
Source§impl Encode for AudioBalanceFade
impl Encode for AudioBalanceFade
Source§impl PartialEq for AudioBalanceFade
impl PartialEq for AudioBalanceFade
Source§impl RefEncode for AudioBalanceFade
impl RefEncode for AudioBalanceFade
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 AudioBalanceFade
impl StructuralPartialEq for AudioBalanceFade
Auto Trait Implementations§
impl Freeze for AudioBalanceFade
impl RefUnwindSafe for AudioBalanceFade
impl !Send for AudioBalanceFade
impl !Sync for AudioBalanceFade
impl Unpin for AudioBalanceFade
impl UnwindSafe for AudioBalanceFade
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.