mediabus-0.3.2.0: Multimedia streaming on top of Conduit

Safe HaskellNone
LanguageHaskell2010

Data.MediaBus.Conduit.Timing

Description

Conduits to create and convert the time stamps in Streams

Synopsis

Documentation

convertTicksC' :: forall proxy0 proxy1 m r t r' t' i s c p. (NFData t, NFData t', CanBeTicks r t, CanBeTicks r' t', Monad m, NFData t') => proxy0 '(r, t) -> proxy1 '(r', t') -> Conduit (Stream i s (Ticks r t) p c) m (Stream i s (Ticks r' t') p c) Source #

Recalculate all timestamps in a Stream

deriveFrameTimestamp :: forall m r t a. (Monad m, CanBeTicks r t, HasDuration a, HasTimestamp a) => Ticks r t -> Conduit a m (SetTimestamp a (Ticks r t)) Source #

Overwrite the timestamp of a stream of things that have a time stamp field (i.e. HasTimestamp instances) and also a duration, such that the timestamps increment by the duration starting from 0.