Today I installed OpenAL on my windows machine.
I installed both OpenAl-1.4.0.0 and ALUT-2.2.0.0
I am able to load the modules in haskell files and check the types of
HOpenAL functions using GCHi, however, whenever I run a main routine in GCHi
using HOpenAL functions I get the following error:
Malcolm Wallace wrote:
>
>> foreign import ccall "PlaySound" play :: CString -> Int32 -> Int32 -
>> > IO Bool
>
> Is it possible that the foreign function should use the "stdcall"
> convention rather than "ccall"?
>
> IIRC, the difference is in who is responsible for cleaning the the
> s
Hello, I am trying to write a Haskell program that plays wav files using
foreign import on the Win32 function PlaySound:
BOOL PlaySound(
LPCTSTR pszSound,
HMODULE hmod,
DWORD fdwSound
);
I wrote the following module to import the function, which I successfully
compiled with GHC using