Struct WaveReader

Source
pub struct WaveReader { /* private fields */ }

Implementations§

Source§

impl WaveReader

Source

pub fn open(file_source: &str) -> Result<Self, AudioReadError>

Source

pub fn new(file_source: WaveDataSource) -> Result<Self, AudioReadError>

Source

pub fn spec(&self) -> Spec

Source

pub fn get_fact_data(&self) -> u64

Source

pub fn get_fmt__chunk(&self) -> &FmtChunk

Source

pub fn get_slnt_chunk(&self) -> &Option<SlntChunk>

Source

pub fn get_bext_chunk(&self) -> &Option<BextChunk>

Source

pub fn get_smpl_chunk(&self) -> &Option<SmplChunk>

Source

pub fn get_inst_chunk(&self) -> &Option<InstChunk>

Source

pub fn get_plst_chunk(&self) -> &Option<PlstChunk>

Source

pub fn get_cue__chunk(&self) -> &Option<CueChunk>

Source

pub fn get_axml_chunk(&self) -> &Option<String>

Source

pub fn get_ixml_chunk(&self) -> &Option<String>

Source

pub fn get_list_chunk(&self) -> &Option<ListChunk>

Source

pub fn get_acid_chunk(&self) -> &Option<AcidChunk>

Source

pub fn get_trkn_chunk(&self) -> &Option<String>

Source

pub fn get_id3__chunk(&self) -> &Option<Tag>

Source

pub fn get_junk_chunks(&self) -> &Vec<JunkChunk>

Source

pub fn create_full_info_cue_data( &self, ) -> Result<BTreeMap<u32, FullInfoCuePoint>, AudioError>

Source

pub fn frame_iter<S>(&mut self) -> Result<FrameIter<'_, S>, AudioReadError>
where S: SampleType,

Source

pub fn mono_iter<S>(&mut self) -> Result<MonoIter<'_, S>, AudioReadError>
where S: SampleType,

Source

pub fn stereo_iter<S>(&mut self) -> Result<StereoIter<'_, S>, AudioReadError>
where S: SampleType,

Source

pub fn frame_intoiter<S>(self) -> Result<FrameIntoIter<S>, AudioReadError>
where S: SampleType,

Source

pub fn mono_intoiter<S>(self) -> Result<MonoIntoIter<S>, AudioReadError>
where S: SampleType,

Source

pub fn stereo_intoiter<S>(self) -> Result<StereoIntoIter<S>, AudioReadError>
where S: SampleType,

Trait Implementations§

Source§

impl Debug for WaveReader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl IntoIterator for WaveReader

Source§

type Item = (f32, f32)

The type of the elements being iterated over.
Source§

type IntoIter = StereoIntoIter<f32>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.