#[repr(C)]pub struct AudioPanningInfo {
pub mPanningMode: AudioPanningMode,
pub mCoordinateFlags: u32,
pub mCoordinates: [f32; 3],
pub mGainScale: f32,
pub mOutputChannelMap: NonNull<AudioChannelLayout>,
}Available on crate features
AudioFormat and objc2-core-audio-types only.Expand description
This struct is for use with kAudioFormatProperty_PanningMatrix.
mGainScale is used to multiply the panning values. In typical usage you are applying an existing volume. value in 0 -> 1 (where 1 is unity gain) to the panned values. 1 would give you panning at unity. 0 would give you back a matrix of zeroes.
This is the channel map that is going to be used to determine channel volumes for this pan.
See also Apple’s documentation
Fields§
§mPanningMode: AudioPanningMode§mCoordinateFlags: u32§mCoordinates: [f32; 3]§mGainScale: f32§mOutputChannelMap: NonNull<AudioChannelLayout>Trait Implementations§
Source§impl Clone for AudioPanningInfo
impl Clone for AudioPanningInfo
Source§fn clone(&self) -> AudioPanningInfo
fn clone(&self) -> AudioPanningInfo
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 AudioPanningInfo
impl Debug for AudioPanningInfo
Source§impl Encode for AudioPanningInfo
impl Encode for AudioPanningInfo
Source§impl PartialEq for AudioPanningInfo
impl PartialEq for AudioPanningInfo
Source§impl RefEncode for AudioPanningInfo
impl RefEncode for AudioPanningInfo
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 AudioPanningInfo
impl StructuralPartialEq for AudioPanningInfo
Auto Trait Implementations§
impl Freeze for AudioPanningInfo
impl RefUnwindSafe for AudioPanningInfo
impl !Send for AudioPanningInfo
impl !Sync for AudioPanningInfo
impl Unpin for AudioPanningInfo
impl UnwindSafe for AudioPanningInfo
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.