mediabus-0.4.0.1: Multimedia streaming on top of Conduit

Safe HaskellNone
LanguageHaskell2010

Data.MediaBus.Media.Blank

Description

Type class for media content that has blank values, that represent a neutral media content such as silence or a black image.

Synopsis

Documentation

class CanGenerateBlankMedia a where Source #

Types that have a dynamic duration, for example a audio sample buffers, can implement this type class to provide methods for generating blank media content (e.g. silence) for a certain duration.

Methods

blankFor :: NominalDiffTime -> a Source #

Generate the value that represents neutral media content, and has at least the given duration.

blankForTicks :: CanBeTicks r i => Ticks r i -> a Source #

Generate the value that represents neutral media content, and has at least the given duration given as Ticks

Instances

class CanBeBlank a where Source #

Types that can have blank values.

Minimal complete definition

blank

Methods

blank :: a Source #

Generate the value that represents neutral media content.