Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains the SourceId
wrapper type, that indicate that
something is identifies a single source of media. This could be an RTP SSRC
or the IP/Port pair of a network source. The defining characteristic of a
SourceId
is that every thing that has a certain source id stems from **the
same media source**, e.g. the same microphone, audio file, synthesizer,...
- newtype SourceId i = MkSourceId i
- sourceIdValue :: Iso (SourceId a) (SourceId b) a b
- type SrcId32 = SourceId Word32
- type SrcId64 = SourceId Word64
- class HasSourceId s t where
- type SourceIdFrom s
- type SourceIdTo t
- class EachSourceId s t where
- type SourceIdsFrom s
- type SourceIdsTo t
Documentation
Things that can be uniquely identified by a looking at a (much simpler)
representation, the identity
.
class HasSourceId s t where Source #
Type class for a lens over the contained source id
type SourceIdFrom s Source #
type SourceIdTo t Source #
sourceId :: Lens s t (SourceIdFrom s) (SourceIdTo t) Source #
A lens for the SourceId
class EachSourceId s t where Source #
Type class with a Traversal
for types that may or may not contain anctual
source id.
type SourceIdsFrom s Source #
type SourceIdsTo t Source #
eachSourceId :: Traversal s t (SourceIdsFrom s) (SourceIdsTo t) Source #