pub struct SymphoniaDecoder;Expand description
Sequential, single-threaded decoder based on Symphonia
Trait Implementations§
Source§impl Decoder for SymphoniaDecoder
impl Decoder for SymphoniaDecoder
Source§fn decode(path: &Path) -> BlissResult<PreAnalyzedSong>
fn decode(path: &Path) -> BlissResult<PreAnalyzedSong>
A function that should decode and resample a song, optionally extracting the song’s metadata such as the artist, the album, etc.
The output sample array should be resampled to f32le, one channel, with a sampling rate of 22050 Hz. Anything other than that will yield wrong results.
Source§fn song_from_path<P: AsRef<Path>>(path: P) -> BlissResult<Song>
fn song_from_path<P: AsRef<Path>>(path: P) -> BlissResult<Song>
Source§fn song_from_path_with_options<P: AsRef<Path>>(
path: P,
analysis_options: AnalysisOptions,
) -> BlissResult<Song>
fn song_from_path_with_options<P: AsRef<Path>>( path: P, analysis_options: AnalysisOptions, ) -> BlissResult<Song>
Source§fn analyze_paths<P: Into<PathBuf>, F: IntoIterator<Item = P>>(
paths: F,
) -> IntoIter<(PathBuf, BlissResult<Song>)> ⓘ
fn analyze_paths<P: Into<PathBuf>, F: IntoIterator<Item = P>>( paths: F, ) -> IntoIter<(PathBuf, BlissResult<Song>)> ⓘ
Analyze songs in
paths using multiple threads, and return the
analyzed Song objects through an mpsc::IntoIter. Read moreSource§fn analyze_paths_with_options<P: Into<PathBuf>, F: IntoIterator<Item = P>>(
paths: F,
analysis_options: AnalysisOptions,
) -> IntoIter<(PathBuf, BlissResult<Song>)> ⓘ
fn analyze_paths_with_options<P: Into<PathBuf>, F: IntoIterator<Item = P>>( paths: F, analysis_options: AnalysisOptions, ) -> IntoIter<(PathBuf, BlissResult<Song>)> ⓘ
Analyze songs in
paths, and return the analyzed Song objects through an
mpsc::IntoIter. number_cores sets the number of cores the analysis
will use, capped by your system’s capacity. Most of the time, you want to
use the simpler analyze_paths functions, which autodetects the number
of cores in your system. Read moreAuto Trait Implementations§
impl Freeze for SymphoniaDecoder
impl RefUnwindSafe for SymphoniaDecoder
impl Send for SymphoniaDecoder
impl Sync for SymphoniaDecoder
impl Unpin for SymphoniaDecoder
impl UnsafeUnpin for SymphoniaDecoder
impl UnwindSafe for SymphoniaDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more