Skip to main content

ogg_length_ms

Function ogg_length_ms 

Source
pub fn ogg_length_ms(bytes: &[u8]) -> Option<u32>
Expand description

How long an OGG Vorbis file plays, in milliseconds (to the nearest): the granule position of its last page, which for Vorbis is the number of samples in the stream, over the sample rate in its header. None if bytes isn’t a whole OGG Vorbis file.