Struct taglib::AudioProperties [−][src]
pub struct AudioProperties<'a> { /* fields omitted */ }
Common audio file properties.
Instances of AudioProperties
can only be created through the
taglib::File::audioproperties()
method.
Methods
impl<'a> AudioProperties<'a>
[src]
impl<'a> AudioProperties<'a>
pub fn length(&self) -> u32
[src]
pub fn length(&self) -> u32
Returns the length, in seconds, of the track.
pub fn bitrate(&self) -> u32
[src]
pub fn bitrate(&self) -> u32
Returns the most appropriate bit rate for the track, in kB/s. For constant bit rate formats, the returned value is the bit rate of the file; for variable bit rate formats this is either the average or the nominal bit rate.
pub fn samplerate(&self) -> u32
[src]
pub fn samplerate(&self) -> u32
Returns the sample rate, in Hz.
pub fn channels(&self) -> u32
[src]
pub fn channels(&self) -> u32
Returns the number of audio channels.
Auto Trait Implementations
impl<'a> !Send for AudioProperties<'a>
impl<'a> !Send for AudioProperties<'a>
impl<'a> !Sync for AudioProperties<'a>
impl<'a> !Sync for AudioProperties<'a>