hogg-0.2.0: Library and tools to manipulate the Ogg container formatContentsIndex
Codec.Container.Ogg.Track
Synopsis
data OggTrack = OggTrack {
trackSerialno :: Serial
trackType :: (Maybe ContentType)
trackGranulerate :: (Maybe Granulerate)
trackGranuleshift :: (Maybe Int)
trackMetadata :: MessageHeaders
}
newTrack :: Serial -> OggTrack
nullTrack :: OggTrack
bosToTrack :: Serial -> ByteString -> OggTrack
gpToTimestamp :: Granulepos -> OggTrack -> Maybe Timestamp
gpToGranules :: Granulepos -> OggTrack -> Maybe Integer
gpSplit :: Granulepos -> OggTrack -> Maybe (Integer, Integer)
gpExplain :: Granulepos -> OggTrack -> String
Documentation
data OggTrack
Constructors
OggTrack
trackSerialno :: Serial
trackType :: (Maybe ContentType)
trackGranulerate :: (Maybe Granulerate)
trackGranuleshift :: (Maybe Int)
trackMetadata :: MessageHeaders
show/hide Instances
newTrack :: Serial -> OggTrack
A new track, with a given serialno
nullTrack :: OggTrack
The null track
bosToTrack :: Serial -> ByteString -> OggTrack
gpToTimestamp :: Granulepos -> OggTrack -> Maybe Timestamp
Convert a granulepos to a timestamp
gpToGranules :: Granulepos -> OggTrack -> Maybe Integer
Convert a granluepos to a count of granules
gpSplit :: Granulepos -> OggTrack -> Maybe (Integer, Integer)
Split a granulepos by its track's granuleshift
gpExplain :: Granulepos -> OggTrack -> String
Produced by Haddock version 0.8