Struct audrey::read::Description
[−]
[src]
pub struct Description { /* fields omitted */ }
A description of the audio format that was read from file.
Methods
impl Description
[src]
fn format(&self) -> Format
The format from which the audio will be read.
fn channel_count(&self) -> u32
The number of channels of audio.
E.g. For audio stored in stereo this should return 2
. Mono audio will return 1
.
fn sample_rate(&self) -> u32
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 Copy for Description
[src]
impl Clone for Description
[src]
fn clone(&self) -> Description
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Description
[src]
impl PartialEq for Description
[src]
fn eq(&self, __arg_0: &Description) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Description) -> bool
This method tests for !=
.