Struct afi::Audio [−][src]
pub struct Audio { 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, // some fields omitted }
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
Methods
impl Audio
[src]
impl Audio
pub fn new(n_frames: u32) -> Audio
[src]
pub fn new(n_frames: u32) -> Audio
Create a new Audio
.
pub fn pop(&mut self) -> Option<AFrame>
[src]
pub fn pop(&mut self) -> Option<AFrame>
Returns audio for the next frame on the Queue.
pub fn frames(&self) -> u32
[src]
pub fn frames(&self) -> u32
Return the number of frames in the audio.