sdr-0.1.0.5: A software defined radio library

Safe HaskellSafe
LanguageHaskell2010

SDR.PipeUtils

Description

Pipes utility functions

Synopsis

Documentation

fork :: Monad m => Producer a m r -> Producer a (Producer a m) r Source

Fork a pipe

combine :: Monad m => Consumer a m r -> Consumer a m r -> Consumer a m r Source

Combine two consumers into a single consumer

printStream :: Show a => Int -> Consumer a IO () Source

A consumer that prints everything to stdout

devnull :: Monad m => Consumer a m () Source

A consumer that discards everything

rate :: Int -> Pipe a a IO b Source

Passthrough pipe that prints the sample rate

pMapAccum :: Monad m => (acc -> x -> (acc, y)) -> acc -> Pipe x y m () Source