[Haskell-cafe] sdl-mixer loading issue
wojtowicz.norbert at gmail.com
Tue Jun 24 20:34:08 EDT 2008
> 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 Control.Concurrent (threadDelay)
main = do
openAudio 22050 AudioS16Sys 2 4096
w <- loadMUS "c.wav"
playMusic w 1
It plays (which is an immense improvement), but I can't get it to
sound the way it does from eg. mplayer. I have almost no knowledge of
the inner workings of computer sound drivers, so if there is something
obvious I'm missing please do speak up.
More information about the Haskell-Cafe