Struct flac::metadata::StreamInfo [] [src]

pub struct StreamInfo {
    pub min_block_size: u16,
    pub max_block_size: u16,
    pub min_frame_size: u32,
    pub max_frame_size: u32,
    pub sample_rate: u32,
    pub channels: u8,
    pub bits_per_sample: u8,
    pub total_samples: u64,
    pub md5_sum: [u8; 16],
}

Information regarding the entire audio stream.

Fields

min_block_size: u16

Minimum block size, in samples, used in the stream.

max_block_size: u16

Maximum block size, in samples, used in the stream.

min_frame_size: u32

Minimum frame size, in bytes, used in the stream. May be zero to imply the value isn't know.

max_frame_size: u32

Maximum frame size, in bytes, used in the stream. May be zero to imply the value isn't know.

sample_rate: u32

Sample rate in hertz (Hz).

channels: u8

Number of channels. FLAC supports one to eight channel.

bits_per_sample: u8

Bits per sample. FLAC supports four to thirty-two bits per sample.

total_samples: u64

Total samples in the stream. A value of zero means the number is unknown.

md5_sum: [u8; 16]

MD5 signature of the unencoded audio data.

Methods

impl StreamInfo
[src]

fn new() -> StreamInfo

Trait Implementations

impl Eq for StreamInfo
[src]

impl PartialEq for StreamInfo
[src]

fn eq(&self, __arg_0: &StreamInfo) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &StreamInfo) -> bool

This method tests for !=.

impl Debug for StreamInfo
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for StreamInfo
[src]

impl Clone for StreamInfo
[src]

fn clone(&self) -> StreamInfo

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more