Iavor Diatchki
2012-10-10 16:33:32 UTC
Hello,
is there an existing Haskell library that makes it easy to play and mix
audio samples in a portable way? (with emphasis on easy and portable :-)
I've made a binding to portaudio, which works but---as far as I
understand---in order to get overlapping samples to play, I have to mix the
samples myself, which I can do, but I thought I'd check if there might be
an already existing solution so I don't have to mess with these low-level
details.
The context is that I thought that it'd be fun to add sound effects to a
small game that I wrote with some friends, so the samples will be
pre-recorded .wav files (probably quite short) but they may overlap, which
is why I need the mixing.
Ideas?
-Iavor
is there an existing Haskell library that makes it easy to play and mix
audio samples in a portable way? (with emphasis on easy and portable :-)
I've made a binding to portaudio, which works but---as far as I
understand---in order to get overlapping samples to play, I have to mix the
samples myself, which I can do, but I thought I'd check if there might be
an already existing solution so I don't have to mess with these low-level
details.
The context is that I thought that it'd be fun to add sound effects to a
small game that I wrote with some friends, so the samples will be
pre-recorded .wav files (probably quite short) but they may overlap, which
is why I need the mixing.
Ideas?
-Iavor