Audio

Struct Audio 

Source
pub struct Audio {
Show 15 fields pub title: String, pub artist: String, pub album_artist: String, pub album: String, pub cd: String, pub release: String, pub track_number: String, pub track_count: String, pub genre: String, pub comment: String, pub composer: String, pub orig_artist: String, pub copyright: String, pub url: String, pub encoded_by: String, /* private fields */
}
Expand description

An Audio Buffer (48kHz/48,000hz).

Fields§

§title: String

Title

§artist: String

Artist / Author

§album_artist: String

Album Artist

§album: String

Album

§cd: String

CD

§release: String

Release Date / Release Year

§track_number: String

Track #

§track_count: String

Track Count

§genre: String

Genre

§comment: String

Comment

§composer: String

Composer

§orig_artist: String

Original artist

§copyright: String

Copyright / License

§url: String

Artist Website / URL

§encoded_by: String

Encoded By

Implementations§

Source§

impl Audio

Source

pub fn new(n_frames: u32) -> Audio

Create a new Audio.

Source

pub fn pop(&mut self) -> Option<AFrame>

Returns audio for the next frame on the Queue.

Source

pub fn frames(&self) -> u32

Return the number of frames in the audio.

Auto Trait Implementations§

§

impl Freeze for Audio

§

impl RefUnwindSafe for Audio

§

impl Send for Audio

§

impl Sync for Audio

§

impl Unpin for Audio

§

impl UnwindSafe for Audio

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.