Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Sound.Pulse.Simple
- import Control.Monad
- import System.IO
- main = do
- s <- simpleNew Nothing "example" Record Nothing
- "this is an example application"
- (SampleSpec (F32 LittleEndian) 44100 1) Nothing Nothing
- forever $ do
- let numSamples = 4410
- xs <- simpleRead s $ numSamples :: IO [Float]
- putStrLn $ "hello"
- hFlush stdout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement