[haskell-art] Announcement: Sox wrapper
Balazs Komuves
bkomuves at gmail.com
Wed Apr 22 20:05:19 BST 2009
On Wed, Apr 22, 2009 at 7:52 PM, Daniel van den Eijkel <dvde at gmx.net> wrote:
> Portaudio does not work for me. Maybe it's because I don't use cygwin or
> mingw, but every time I tried to install it, it failed. Last time there was
> an error "c2hs.exe: does not exist" even if c2hs.exe was in the same
> directory. I'm not sure if I do something wrong or if it's simply windows
> that does not work proper with some Haskell programs... if I were sure it
> was me, I would not be giving up that early everytime I try to get realtime
> audio working on windows :-)
>
If you are interested only in Windows, I wrote bindings to DirectSound.
The code is here: http://code.haskell.org/~bkomuves/projects/DirectSound/
The haddock documentation is here:
http://code.haskell.org/~bkomuves/projects/DirectSound/dist/doc/html/DirectSound/Sound-Win32-DirectSound.html
Example code showing stereo playback is here:
http://code.haskell.org/~bkomuves/projects/examples/DirectSound_playback_example.hs
Of course I don't want to suggest that you should abandon trying to find the
problem with SoX binding!
(btw I have similar code for OSX too).
Balazs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.lurk.org/pipermail/haskell-art/attachments/20090422/39b94811/attachment.htm
More information about the haskell-art
mailing list