Data AudioInfo
audio/audio_info::AudioInfo
Traits
∈ Deserialize
∈ Display
∈ Serialize
∈ ToString
Metadata describing an audio stream.
AudioInfo is produced by decoding treatments and carries the properties of the source
audio that were detected during format probing and codec initialisation.
codec— short name of the audio codec (e.g."pcm_s16le","flac","mp3","aac").channels— number of audio channels in the original stream (e.g.1for mono,2for stereo).sample_rate— number of samples per second (e.g.44100,48000).duration_seconds— total duration of the stream in seconds, when known.noneif the container does not report a frame count (e.g. raw streams, some network sources).