Skip to main content

kithara_decode/gapless/
info.rs

1/// Gapless trim contract for one decoded track.
2///
3/// The values are expressed in PCM frames, not scalar samples:
4/// `leading_frames` are dropped from the start of the track and
5/// `trailing_frames` are dropped from the end at EOF.
6#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
7#[non_exhaustive]
8pub struct GaplessInfo {
9    pub leading_frames: u64,
10    pub trailing_frames: u64,
11}