Safe Haskell | None |
---|---|
Language | Haskell2010 |
Deprecated: Use Sound.Sox.Signal.List instead.
This is old code, handling Int16 using two characters.
- writeInt16Stream :: FilePath -> [Int16] -> IO ()
- readInt16StreamStrict :: FilePath -> IO [Int16]
- writeLEInt16Stream :: FilePath -> [Int16] -> IO ()
- readLEInt16Stream :: FilePath -> IO [Int16]
- putInt16Stream :: Handle -> [Int16] -> IO ()
- putInt16StreamChunky :: Handle -> [Int16] -> IO ()
- intToTwoLEChars :: Int -> [Char]
- twoLECharsToInt :: Char -> Char -> Int
Documentation
writeInt16Stream :: FilePath -> [Int16] -> IO () Source #
Uses endianess of the machine, like Sox does.
readInt16StreamStrict :: FilePath -> IO [Int16] Source #
The end of the list is undefined, if the file has odd length. It would be better if it throws an exception.
writeLEInt16Stream :: FilePath -> [Int16] -> IO () Source #
Write a little endian 16 bit integer stream
via String data and writeFile
.
readLEInt16Stream :: FilePath -> IO [Int16] Source #
The end of the list is undefined, if the file has odd length. It would be better if it throws an exception.
intToTwoLEChars :: Int -> [Char] Source #