#[repr(C)]pub struct AudioQueueParameterEvent {
pub mID: AudioQueueParameterID,
pub mValue: AudioQueueParameterValue,
}
Available on crate feature
AudioQueue
only.Expand description
Specifies a value for an audio queue parameter.
Two ways are available to supply an audio queue with parameters:
-
Provide one or more parameters by calling the AudioQueueEnqueueBufferWithParameters function. In this case, the parameters are applied to the specified buffer when it is played.
-
Assign a parameter value immediately to an audio queue by calling the AudioQueueSetParameter function.
Note that the AudioQueueGetParameter function always returns the actual value of the parameter.
In macOS v10.5, audio queues have one parameter available: kAudioQueueParam_Volume, which controls the queue’s playback volume.
The parameter.
The value of the specified parameter.
See also Apple’s documentation
Fields§
§mID: AudioQueueParameterID
§mValue: AudioQueueParameterValue
Trait Implementations§
Source§impl Clone for AudioQueueParameterEvent
impl Clone for AudioQueueParameterEvent
Source§fn clone(&self) -> AudioQueueParameterEvent
fn clone(&self) -> AudioQueueParameterEvent
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 AudioQueueParameterEvent
impl Debug for AudioQueueParameterEvent
Source§impl Encode for AudioQueueParameterEvent
impl Encode for AudioQueueParameterEvent
Source§impl PartialEq for AudioQueueParameterEvent
impl PartialEq for AudioQueueParameterEvent
Source§impl RefEncode for AudioQueueParameterEvent
impl RefEncode for AudioQueueParameterEvent
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 AudioQueueParameterEvent
impl StructuralPartialEq for AudioQueueParameterEvent
Auto Trait Implementations§
impl Freeze for AudioQueueParameterEvent
impl RefUnwindSafe for AudioQueueParameterEvent
impl Send for AudioQueueParameterEvent
impl Sync for AudioQueueParameterEvent
impl Unpin for AudioQueueParameterEvent
impl UnwindSafe for AudioQueueParameterEvent
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.