[email protected]
[Top] [All Lists]

Re: [Haskell-cafe] ANN: Hemkay, the 100% Haskell MOD player

Subject: Re: [Haskell-cafe] ANN: Hemkay, the 100% Haskell MOD player
From: "Patai Gergely"
Date: Sun, 20 Dec 2009 11:18:53 +0100
Hello all,

I did some refactoring, and separated the device independent part of
Hemkay into a package of its own, hemkay-core [1]. This is a library
that provides facilities to load MOD music and render it in various
ways, including a direct-to-buffer option that's considerably more
efficient than creating a list of samples. You can use it to create a
MOD player with any sound-making API or even write the mixer output into
a wav file.

The hemkay package [2] is now reduced to an example that shows how to
use the core library with PortAudio. It is also considerably faster than
the previous version, because now I push as many samples as possible at
a time without blocking. I had no luck with Mietek's callback interface
so far, because it keeps randomly segfaulting on me, but when it works,
it's about four times as fast as the current player. You are encouraged
to try adapting it (using mixToBuffer) to other systems.

Gergely

[1] http://hackage.haskell.org/package/hemkay-core
[2] http://hackage.haskell.org/package/hemkay

-- 
http://www.fastmail.fm - Choose from over 50 domains or use your own

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>