[−][src]Struct audrey::read::Description
A description of the audio format that was read from file.
Implementations
impl Description
[src]
pub fn format(&self) -> Format
[src]
The format from which the audio will be read.
pub fn channel_count(&self) -> u32
[src]
The number of channels of audio.
E.g. For audio stored in stereo this should return 2
. Mono audio will return 1
.
pub fn sample_rate(&self) -> u32
[src]
The rate in Hertz at which each channel of the stored audio is sampled.
E.g. A sample_rate
of 44_100 indicates that the audio is sampled 44_100 times per second
per channel.
Trait Implementations
impl Clone for Description
[src]
pub fn clone(&self) -> Description
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Description
[src]
impl Debug for Description
[src]
impl Eq for Description
[src]
impl PartialEq<Description> for Description
[src]
pub fn eq(&self, other: &Description) -> bool
[src]
pub fn ne(&self, other: &Description) -> bool
[src]
impl StructuralEq for Description
[src]
impl StructuralPartialEq for Description
[src]
Auto Trait Implementations
impl RefUnwindSafe for Description
[src]
impl Send for Description
[src]
impl Sync for Description
[src]
impl Unpin for Description
[src]
impl UnwindSafe for Description
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
[src]
pub fn from_sample_(s: S) -> S
[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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
pub fn to_sample_(self) -> U
[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.
pub 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>,