| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Sound.Player.AudioPlay
- play :: FilePath -> IO ProcessHandle
- pause :: ProcessHandle -> IO ()
- resume :: ProcessHandle -> IO ()
- stop :: ProcessHandle -> IO ()
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.