#[repr(C)]pub struct AudioQueueChannelAssignment {
pub mDeviceUID: NonNull<CFString>,
pub mChannelNumber: u32,
}
Available on crate features
AudioQueue
and objc2-core-foundation
only.Expand description
Specifies an audio device channel to which the queue will play or from which it will record.
On iOS, this is a port UID obtained from AVAudioSession. On macOS, this is the UID obtained from an AudioDeviceID.
The 1-based index of the channel.
See also Apple’s documentation
Fields§
§mDeviceUID: NonNull<CFString>
§mChannelNumber: u32
Trait Implementations§
Source§impl Clone for AudioQueueChannelAssignment
impl Clone for AudioQueueChannelAssignment
Source§fn clone(&self) -> AudioQueueChannelAssignment
fn clone(&self) -> AudioQueueChannelAssignment
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 AudioQueueChannelAssignment
impl Debug for AudioQueueChannelAssignment
Source§impl Encode for AudioQueueChannelAssignment
impl Encode for AudioQueueChannelAssignment
Source§impl RefEncode for AudioQueueChannelAssignment
impl RefEncode for AudioQueueChannelAssignment
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 AudioQueueChannelAssignment
impl StructuralPartialEq for AudioQueueChannelAssignment
Auto Trait Implementations§
impl Freeze for AudioQueueChannelAssignment
impl !RefUnwindSafe for AudioQueueChannelAssignment
impl !Send for AudioQueueChannelAssignment
impl !Sync for AudioQueueChannelAssignment
impl Unpin for AudioQueueChannelAssignment
impl !UnwindSafe for AudioQueueChannelAssignment
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.