| Copyright | (c) 2021 Tristan de Cacqueray |
|---|---|
| License | Apache-2.0 |
| Maintainer | Tristan de Cacqueray <tdecacqu@redhat.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Pipes.PulseSimple
Description
Pipes for simple-pulse audio
Synopsis
- readPulse :: MonadSafe m => String -> Maybe SampleSpec -> Int -> Producer' ByteString m ()
- writePulse :: MonadSafe m => String -> Maybe SampleSpec -> Int -> Consumer' ByteString m ()
Documentation
Arguments
| :: MonadSafe m | |
| => String | The client name |
| -> Maybe SampleSpec | The sample spec, default to mono 44100 Hz 16 bit signed integer |
| -> Int | Frames per second |
| -> Producer' ByteString m () | The pipe producing bytestring |
Create an audio pipe producer that yields fps bytestring buffer per second
Arguments
| :: MonadSafe m | |
| => String | The client name |
| -> Maybe SampleSpec | The sample spec, default to mono 44100 Hz 16 bit signed integer |
| -> Int | Frames per second |
| -> Consumer' ByteString m () | The pipe consuming bytestring |
Create an audio pipe consumer that awaits fps bytestring buffer per second