{-# LANGUAGE OverloadedStrings #-}
module Network.MPD.Commands.PlaybackControl
( next
, pause
, play
, playId
, previous
, seek
, seekId
, 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 -> Seconds -> m ()
seek pos = A.runCommand . A.seek pos
seekId :: MonadMPD m => Id -> Seconds -> m ()
seekId id' = A.runCommand . A.seekId id'
stop :: MonadMPD m => m ()
stop = A.runCommand A.stop