synthesizer-core-0.4.0.4: Audio signal processing coded in Haskell: Low level part

Synthesizer.Plain.IO

Description

This is old code, handling Int16 using two characters.

Synopsis

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.