[Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Norbert Wojtowicz
Hello, I am trying to use the SDL-mixer bindings to play wav files. I've hit a wierd error and I can't figure out how to solve it: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Loading package SDL-0.5.4 ... linking ... done. Loading package

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Henning Thielemann
On Tue, 24 Jun 2008, Norbert Wojtowicz wrote: Hello, I am trying to use the SDL-mixer bindings to play wav files. I've hit a wierd error and I can't figure out how to solve it: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Is the package

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Don Stewart
wojtowicz.norbert: Hello, I am trying to use the SDL-mixer bindings to play wav files. I've hit a wierd error and I can't figure out how to solve it: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Loading package SDL-0.5.4 ... linking ...

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Don Stewart
lemming: On Tue, 24 Jun 2008, Norbert Wojtowicz wrote: Hello, I am trying to use the SDL-mixer bindings to play wav files. I've hit a wierd error and I can't figure out how to solve it: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Marco Túlio Gontijo e Silva
Em Ter, 2008-06-24 às 14:57 -0500, Norbert Wojtowicz escreveu: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Loading package SDL-0.5.4 ... linking ... done. Loading package SDL-mixer-0.5.2 ... linking ... interactive:

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Don Stewart
marcot: Em Ter, 2008-06-24 às 14:57 -0500, Norbert Wojtowicz escreveu: Prelude import Graphics.UI.SDL.Mixer.Music Prelude Graphics.UI.SDL.Mixer.Music loadMUS test.wav Loading package SDL-0.5.4 ... linking ... done. Loading package SDL-mixer-0.5.2 ... linking ... interactive:

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Norbert Wojtowicz
SDL-mixer does not support the most recent SDL version. The problem is that in SDL now Mix_LoadWAV is a macro. I've tried it with SDL-0.5.2 from hackage as well with the same problem. (Unless you mean an earlier version of the actual SDL library?) Ah ha, so it needs a cbits wrapper over the

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Don Stewart
wojtowicz.norbert: SDL-mixer does not support the most recent SDL version. The problem is that in SDL now Mix_LoadWAV is a macro. I've tried it with SDL-0.5.2 from hackage as well with the same problem. (Unless you mean an earlier version of the actual SDL library?) Ah ha, so it

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Norbert Wojtowicz
Attached is a patched version of SDL_mixer 0.5.2 with a C wrapper for this macro. I'm now able to run loadWAV in ghci. Works for me, thanks! Now I just need to learn how to make my WAVs sound not like computer-generated children voices. For example, using the hback wav files and this: import

Re: [Haskell-cafe] sdl-mixer loading issue

2008-06-24 Thread Luke Palmer
On Tue, Jun 24, 2008 at 6:34 PM, Norbert Wojtowicz [EMAIL PROTECTED] wrote: Attached is a patched version of SDL_mixer 0.5.2 with a C wrapper for this macro. I'm now able to run loadWAV in ghci. Works for me, thanks! Now I just need to learn how to make my WAVs sound not like