symphonia_bundle_mp3

Type Alias Mp3Reader

Source
pub type Mp3Reader = MpaReader;
👎Deprecated: use symphonia_bundle_mp3::MpaReader instead

Aliased Type§

struct Mp3Reader { /* private fields */ }

Trait Implementations

Source§

impl FormatReader for MpaReader

Source§

fn try_new(source: MediaSourceStream, options: &FormatOptions) -> Result<Self>

Attempt to instantiate a FormatReader using the provided FormatOptions and MediaSourceStream. The reader will probe the container to verify format support, determine the number of tracks, and read any initial metadata.
Source§

fn next_packet(&mut self) -> Result<Packet>

Get the next packet from the container. Read more
Source§

fn metadata(&mut self) -> Metadata<'_>

Gets the metadata revision log.
Source§

fn cues(&self) -> &[Cue]

Gets a list of all Cues.
Source§

fn tracks(&self) -> &[Track]

Gets a list of tracks in the container.
Source§

fn seek(&mut self, mode: SeekMode, to: SeekTo) -> Result<SeekedTo>

Seek, as precisely as possible depending on the mode, to the Time or track TimeStamp requested. Returns the requested and actual TimeStamps seeked to, as well as the Track. Read more
Source§

fn into_inner(self: Box<Self>) -> MediaSourceStream

Destroys the FormatReader and returns the underlying media source stream
Source§

fn default_track(&self) -> Option<&Track>

Gets the default track. If the FormatReader has a method of determining the default track, this function should return it. Otherwise, the first track is returned. If no tracks are present then None is returned.
Source§

impl QueryDescriptor for MpaReader

Source§

fn query() -> &'static [Descriptor]

Returns a list of descriptors.
Source§

fn score(_context: &[u8]) -> u8

Using the provided context buffer, score calculate and returns a value between 0 and 255 indicating the confidence of the reader in decoding or parsing the source stream.