Network.MPD.Applicative.PlaybackOptions

libmpd-0.9.0.9: An MPD client library.

Copyright | (c) Joachim Fasting 2012
License | MIT
Maintainer | joachifm@fastmail.fm
Stability | stable
Portability | unportable
Safe Haskell | None
Language | Haskell2010

Network.MPD.Applicative.PlaybackOptions

Description

Playback options

Synopsis

- consume :: Bool -> Command ()
- crossfade :: Seconds -> Command ()
- random :: Bool -> Command ()
- repeat :: Bool -> Command ()
- setVolume :: Int -> Command ()
- single :: Bool -> Command ()
- replayGainMode :: ReplayGainMode -> Command ()
- replayGainStatus :: Command [(String, String)]
- mixrampDb :: Decibels -> Command ()
- mixrampDelay :: Seconds -> Command ()

# Documentation

consume :: Bool -> Command () #

Toggle consume mode.

crossfade :: Seconds -> Command () #

Set crossfading between songs.

random :: Bool -> Command () #

Toggle random mode.

repeat :: Bool -> Command () #

Toggle repeat mode.

setVolume :: Int -> Command () #

Set volume in percent.

single :: Bool -> Command () #

Toggle single mode.

replayGainMode :: ReplayGainMode -> Command () #

Set replay gain mode.

replayGainStatus :: Command [(String, String)] #

Get replay gain status: option name and its value.

mixrampDb :: Decibels -> Command () #

Set MixRamp overlap threshold. 0dB is the normalized maximum value; use negative values to adjust it.

Songs must have MixRamp tags set by an external tool for this to work; crossfading is used if no tags are present.

mixrampDelay :: Seconds -> Command () #

Additional time subtracted from the overlap calculated by `mixrampDb`. NaN disables MixRamp overlapping and reverts to crossfading.