[Haskell-beginners] alut initialization
Christopher Howard
christopher.howard at frigidcode.com
Mon Sep 24 02:47:10 CEST 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120923/fbf466ff/attachment.pgp>
More information about the Beginners
mailing list