#[repr(C)]pub struct OH_AudioStreamInfo {
pub samplingRate: i32,
pub channelLayout: OH_AudioChannelLayout,
pub encodingType: OH_AudioStream_EncodingType,
pub sampleFormat: OH_AudioStream_SampleFormat,
}Available on crate feature
api-19 only.Expand description
Define the audio stream info structure, used to describe basic audio format.
Available since API-level: 19
Fields§
§samplingRate: i32Audio sampling rate.
Available since API-level: 19
channelLayout: OH_AudioChannelLayoutAudio channel layout.
Available since API-level: 19
encodingType: OH_AudioStream_EncodingTypeAudio encoding format type.
Available since API-level: 19
sampleFormat: OH_AudioStream_SampleFormatAudio sample format.
Available since API-level: 19
Trait Implementations§
Source§impl Clone for OH_AudioStreamInfo
impl Clone for OH_AudioStreamInfo
Source§fn clone(&self) -> OH_AudioStreamInfo
fn clone(&self) -> OH_AudioStreamInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OH_AudioStreamInfo
impl Debug for OH_AudioStreamInfo
impl Copy for OH_AudioStreamInfo
Auto Trait Implementations§
impl Freeze for OH_AudioStreamInfo
impl RefUnwindSafe for OH_AudioStreamInfo
impl Send for OH_AudioStreamInfo
impl Sync for OH_AudioStreamInfo
impl Unpin for OH_AudioStreamInfo
impl UnsafeUnpin for OH_AudioStreamInfo
impl UnwindSafe for OH_AudioStreamInfo
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