[−][src]Enum aaudio::ContentType
The ContentType attribute describes "what" you are playing.
It expresses the general category of the content. This information is optional.
But in case it is known (for instance Movie
for a
movie streaming service or Speech
for
an audio book application) this information might be used by the audio framework to
enforce audio focus.
Note that these match the equivalent values in android.media.AudioAttributes in the Android Java API.
Added in API level 28.
Variants
Use this for spoken voice, audio books, etcetera.
Use this for pre-recorded or live music.
Use this for a movie or video soundtrack.
Use this for sound is designed to accompany a user action, such as a click or beep sound made when the user presses a button.
Trait Implementations
impl Clone for ContentType
[src]
fn clone(&self) -> ContentType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ContentType
[src]
impl Debug for ContentType
[src]
impl Eq for ContentType
[src]
impl PartialEq<ContentType> for ContentType
[src]
fn eq(&self, other: &ContentType) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ContentType
[src]
impl StructuralPartialEq for ContentType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,