gi-gstaudio-1.0.22: GStreamerAudio bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.GstAudio.Objects.AudioSrc

Description

This is the most simple base class for audio sources that only requires subclasses to implement a set of simple functions:

  • open() :Open the device.
  • prepare() :Configure the device with the specified format.
  • read() :Read samples from the device.
  • reset() :Unblock reads and flush the device.
  • delay() :Get the number of samples in the device but not yet read.
  • unprepare() :Undo operations done by prepare.
  • close() :Close the device.

All scheduling of samples and timestamps is done in this base class together with AudioBaseSrc using a default implementation of a AudioRingBuffer that uses threads.

Synopsis

Exported types

newtype AudioSrc Source #

Memory-managed wrapper type.

Constructors

AudioSrc (ManagedPtr AudioSrc) 

Instances

Instances details
Eq AudioSrc Source # 
Instance details

Defined in GI.GstAudio.Objects.AudioSrc

Methods

(==) :: AudioSrc -> AudioSrc -> Bool

(/=) :: AudioSrc -> AudioSrc -> Bool

GObject AudioSrc Source # 
Instance details

Defined in GI.GstAudio.Objects.AudioSrc

ManagedPtrNewtype AudioSrc Source # 
Instance details

Defined in GI.GstAudio.Objects.AudioSrc

Methods

toManagedPtr :: AudioSrc -> ManagedPtr AudioSrc

TypedObject AudioSrc Source # 
Instance details

Defined in GI.GstAudio.Objects.AudioSrc

Methods

glibType :: IO GType

IsGValue AudioSrc Source #

Convert AudioSrc to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.GstAudio.Objects.AudioSrc

Methods

toGValue :: AudioSrc -> IO GValue

fromGValue :: GValue -> IO AudioSrc

HasParentTypes AudioSrc Source # 
Instance details

Defined in GI.GstAudio.Objects.AudioSrc

type ParentTypes AudioSrc Source # 
Instance details

Defined in GI.GstAudio.Objects.AudioSrc

type ParentTypes AudioSrc = '[AudioBaseSrc, PushSrc, BaseSrc, Element, Object, Object]

class (GObject o, IsDescendantOf AudioSrc o) => IsAudioSrc o Source #

Type class for types which can be safely cast to AudioSrc, for instance with toAudioSrc.

Instances

Instances details
(GObject o, IsDescendantOf AudioSrc o) => IsAudioSrc o Source # 
Instance details

Defined in GI.GstAudio.Objects.AudioSrc

toAudioSrc :: (MonadIO m, IsAudioSrc o) => o -> m AudioSrc Source #

Cast to AudioSrc, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods