{-# LANGUAGE OverloadedStrings #-}
module Network.MPD.Commands.PlaybackOptions
( consume
, crossfade
, random
, repeat
, setVolume
, single
, replayGainMode
, replayGainStatus
) where
import qualified Network.MPD.Applicative.Internal as A
import qualified Network.MPD.Applicative.PlaybackOptions as A
import Network.MPD.Commands.Types
import Network.MPD.Core
import Prelude hiding (repeat)
consume :: MonadMPD m => Bool -> m ()
consume = A.runCommand . A.consume
crossfade :: MonadMPD m => Seconds -> m ()
crossfade = A.runCommand . A.crossfade
random :: MonadMPD m => Bool -> m ()
random = A.runCommand . A.random
repeat :: MonadMPD m => Bool -> m ()
repeat = A.runCommand . A.repeat
setVolume :: MonadMPD m => Volume -> m ()
setVolume = A.runCommand . A.setVolume
single :: MonadMPD m => Bool -> m ()
single = A.runCommand . A.single
replayGainMode :: MonadMPD m => ReplayGainMode -> m ()
replayGainMode = A.runCommand . A.replayGainMode
replayGainStatus :: MonadMPD m => m [(String, String)]
replayGainStatus = A.runCommand A.replayGainStatus