gi-gstaudio-1.0.12: GStreamerAudio bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GstAudio.Interfaces.StreamVolume

Contents

Description

<refsect2> <para> This interface is implemented by elements that provide a stream volume. Examples for such elements are volume and playbin. </para> <para> Applications can use this interface to get or set the current stream volume. For this the "volume" Object property can be used or the helper functions streamVolumeSetVolume and streamVolumeGetVolume. This volume is always a linear factor, i.e. 0.0 is muted 1.0 is 100%. For showing the volume in a GUI it might make sense to convert it to a different format by using streamVolumeConvertVolume. Volume sliders should usually use a cubic volume.

Separate from the volume the stream can also be muted by the "mute" Object property or streamVolumeSetMute and streamVolumeGetMute. </para> <para> Elements that provide some kind of stream volume should implement the "volume" and "mute" Object properties and handle setting and getting of them properly. The volume property is defined to be a linear volume factor. </para> </refsect2>

Synopsis

Exported types

Methods

convertVolume

streamVolumeConvertVolume Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> StreamVolumeFormat

from: StreamVolumeFormat to convert from

-> StreamVolumeFormat

to: StreamVolumeFormat to convert to

-> Double

val: Volume in from format that should be converted

-> m Double

Returns: the converted volume

No description available in the introspection data.

getMute

streamVolumeGetMute Source #

Arguments

:: (HasCallStack, MonadIO m, IsStreamVolume a) 
=> a

volume: StreamVolume that should be used

-> m Bool

Returns: Returns True if the stream is muted

No description available in the introspection data.

getVolume

streamVolumeGetVolume Source #

Arguments

:: (HasCallStack, MonadIO m, IsStreamVolume a) 
=> a

volume: StreamVolume that should be used

-> StreamVolumeFormat

format: StreamVolumeFormat which should be returned

-> m Double

Returns: The current stream volume as linear factor

No description available in the introspection data.

setMute

streamVolumeSetMute Source #

Arguments

:: (HasCallStack, MonadIO m, IsStreamVolume a) 
=> a

volume: StreamVolume that should be used

-> Bool

mute: Mute state that should be set

-> m () 

No description available in the introspection data.

setVolume

streamVolumeSetVolume Source #

Arguments

:: (HasCallStack, MonadIO m, IsStreamVolume a) 
=> a

volume: StreamVolume that should be used

-> StreamVolumeFormat

format: StreamVolumeFormat of val

-> Double

val: Linear volume factor that should be set

-> m () 

No description available in the introspection data.

Properties

mute

data StreamVolumeMutePropertyInfo Source #

Instances

AttrInfo StreamVolumeMutePropertyInfo Source # 
type AttrOrigin StreamVolumeMutePropertyInfo Source # 
type AttrLabel StreamVolumeMutePropertyInfo Source # 
type AttrGetType StreamVolumeMutePropertyInfo Source # 
type AttrBaseTypeConstraint StreamVolumeMutePropertyInfo Source # 
type AttrSetTypeConstraint StreamVolumeMutePropertyInfo Source # 
type AttrAllowedOps StreamVolumeMutePropertyInfo Source # 

volume

data StreamVolumeVolumePropertyInfo Source #

Instances

AttrInfo StreamVolumeVolumePropertyInfo Source # 
type AttrOrigin StreamVolumeVolumePropertyInfo Source # 
type AttrLabel StreamVolumeVolumePropertyInfo Source # 
type AttrGetType StreamVolumeVolumePropertyInfo Source # 
type AttrBaseTypeConstraint StreamVolumeVolumePropertyInfo Source # 
type AttrSetTypeConstraint StreamVolumeVolumePropertyInfo Source # 
type AttrAllowedOps StreamVolumeVolumePropertyInfo Source #