summaryrefslogtreecommitdiff
path: root/apex/Cmdwave.hs
blob: 315f57a6aa490a078b46a56d33312a10f296866f (plain)
1
2
3
4
5
6
7
8
import Sound.Pulse.Simple

main :: IO ()
main = do
  s <- simpleNew Nothing "example" Record Nothing "this is an example application"
       (SampleSpec (F32 LittleEndian) 44100 1) Nothing Nothing
  _ <- simpleRead s $ 44100*10 :: IO [Float]
  simpleFree s