| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
Sound.Sox.Write
- simple :: C y => (Handle -> sig y -> IO ()) -> T -> FilePath -> Int -> sig y -> IO ExitCode
- extended :: C y => (Handle -> sig y -> IO ()) -> T -> T -> FilePath -> Int -> sig y -> IO ExitCode
- manyExtended :: (C y, Traversable f) => (f Handle -> sig y -> IO ()) -> T -> T -> f FilePath -> Int -> sig y -> IO (f ExitCode)
Documentation
Arguments
| :: C y | |
| => (Handle -> sig y -> IO ()) | |
| -> T | |
| -> FilePath | |
| -> Int | sample rate |
| -> sig y | |
| -> IO ExitCode |
Sox determines the output format
from the filename extension or from format.
Make sure that you provide one of them.
:load Sound.Sox.Write Sound.Sox.Signal.List simple Sound.Sox.Signal.List.put Option.none "test.aiff" 11025 (take 100 $ iterate (1000+) (0::Data.Int.Int16))
Arguments
| :: (C y, Traversable f) | |
| => (f Handle -> sig y -> IO ()) | |
| -> T | source options, usually none |
| -> T | target options |
| -> f FilePath | |
| -> Int | sample rate |
| -> sig y | |
| -> IO (f ExitCode) |
The traversable functor f might be Maybe or '[]'.
It allows you to write to many files simultaneously
and returns the exit codes of all writing processes.