{-# LANGUAGE OverloadedStrings #-}
module Network.MPD.Commands.PlaybackControl
( next
, pause
, play
, playId
, previous
, seek
, seekId
, seekCur
, stop
) where
import qualified Network.MPD.Applicative.Internal as A
import qualified Network.MPD.Applicative.PlaybackControl as A
import Network.MPD.Commands.Types
import Network.MPD.Core
next :: MonadMPD m => m ()
next = A.runCommand A.next
pause :: MonadMPD m => Bool -> m ()
pause = A.runCommand . A.pause
play :: MonadMPD m => Maybe Position -> m ()
play = A.runCommand . A.play
playId :: MonadMPD m => Id -> m ()
playId = A.runCommand . A.playId
previous :: MonadMPD m => m ()
previous = A.runCommand A.previous
seek :: MonadMPD m => Position -> FractionalSeconds -> m ()
seek pos = A.runCommand . A.seek pos
seekId :: MonadMPD m => Id -> FractionalSeconds -> m ()
seekId id' = A.runCommand . A.seekId id'
seekCur :: MonadMPD m => Bool -> FractionalSeconds -> m ()
seekCur bool = A.runCommand . A.seekCur bool
stop :: MonadMPD m => m ()
stop = A.runCommand A.stop