haskell-player-0.1.3.3: A terminal music player based on afplay

Safe HaskellSafe
LanguageHaskell2010

Sound.Player.AudioPlay

Synopsis

Documentation

play :: FilePath -> IO ProcessHandle Source

Creates an afplay process to play file at path.

Note: it suppresses process' stderr.

pause :: ProcessHandle -> IO () Source

Sends a 17 signal to ph's process. If ph is the handle of a running afplay process it will pause playback.

resume :: ProcessHandle -> IO () Source

Sends a 19 signal to ph's process. If ph is the handle of a running afplay process it will resume playback.

stop :: ProcessHandle -> IO () Source

Terminates the selected process. If ph is the handle of a running afplay process it will stop playback.