Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import Sound.Pulse.Simple
  2. import Control.Monad
  3. import System.IO
  4.  
  5. main = do
  6.  
  7. s <- simpleNew Nothing "example" Record Nothing
  8. "this is an example application"
  9. (SampleSpec (F32 LittleEndian) 44100 1) Nothing Nothing
  10.  
  11.  
  12. forever $ do
  13.  
  14. let numSamples = 4410
  15. xs <- simpleRead s $ numSamples :: IO [Float]
  16.  
  17. putStrLn $ "hello"
  18.  
  19. hFlush stdout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement