alut initialization

Hi. I'm trying to learn ALUT/OpenAL modules so I can have sound in my app. I'm a bit confused by the alut module interface, because it uses this alutRun function that is different than what is in the actual alut library documentation. I thought I figured it out, but apparently not because this simple program doesn't work: code: -------- import Sound.ALUT main = do putStrLn $ "alutAPIVersion: " ++ alutAPIVersion runALUT "" [] (\x y -> return ()) mimes <- get bufferMIMETypes mapM putStrLn mimes *Main> main alutAPIVersion: 1.1 *** Exception: user error (bufferMIMETypes: The operation was invalid in the current ALUT state) -------- Is there anyone familiar with the module that can point me in the right direction? -- frigidcode.com indicium.us
participants (1)
-
Christopher Howard