#[repr(C)]pub struct AudioStreamRangedDescription {
pub mFormat: AudioStreamBasicDescription,
pub mSampleRateRange: AudioValueRange,
}AudioHardware and objc2-core-audio-types only.Expand description
This structure allows a specific sample rate range to be associated with an AudioStreamBasicDescription that specifies its sample rate as kAudioStreamAnyRate.
Note that this structure is only used to describe the the available formats for a stream. It is not used for the current format. Field: mFormat The AudioStreamBasicDescription that describes the format of the stream. Note that the mSampleRate field of the structure will be the same as the the values in mSampleRateRange when only a single sample rate is supported. It will be kAudioStreamAnyRate when there is a range with more elements. Field: mSampleRateRange The AudioValueRange that describes the minimum and maximum sample rate for the stream. If the mSampleRate field of mFormat is kAudioStreamAnyRate the format supports the range of sample rates described by this structure. Otherwise, the minimum will be the same as the maximum which will be the same as the mSampleRate field of mFormat.
See also Apple’s documentation
Fields§
§mFormat: AudioStreamBasicDescription§mSampleRateRange: AudioValueRangeTrait Implementations§
Source§impl Clone for AudioStreamRangedDescription
impl Clone for AudioStreamRangedDescription
Source§fn clone(&self) -> AudioStreamRangedDescription
fn clone(&self) -> AudioStreamRangedDescription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AudioStreamRangedDescription
impl Debug for AudioStreamRangedDescription
Source§impl Encode for AudioStreamRangedDescription
Available on crate feature objc2 only.
impl Encode for AudioStreamRangedDescription
objc2 only.Source§impl PartialEq for AudioStreamRangedDescription
impl PartialEq for AudioStreamRangedDescription
Source§fn eq(&self, other: &AudioStreamRangedDescription) -> bool
fn eq(&self, other: &AudioStreamRangedDescription) -> bool
self and other values to be equal, and is used by ==.Source§impl RefEncode for AudioStreamRangedDescription
Available on crate feature objc2 only.
impl RefEncode for AudioStreamRangedDescription
objc2 only.