PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Hekkus Sound

Hi! After linking all libraries, I've managed to get Hekkus working and playing wav files. But I can not close or free files at all, because Close(); or FreeSoundEffect(); instantly hangs up program and shows assembly with error

MyGame.exe!WinMainCRTStartup(HINSTANCE__* hInstance = CXX0065: Error: unable to obtain expression value, HINSTANCE__* hInstancePrev = 0x2210d534, unsigned short* lpszCmdLine = 0x0003fe7c, int nCmdShow = 571539112) Line: 24, Byte Offsets: 0x58


Suspend(); or FreeSoundEffect with index that is no loaded at all works fine. Maybe You have some ideas what to do?
Hi Ryumaster,

Can you tell me if you're using the Hekkus dll or the static libraries?

We're aware of some instability issues of the hss.dll implementation. For example, our testprogram crashes when deleting the hssSpeaker class object.
Hi!
I'm using hss.dll . So, it is unstable? Hmm, I'll try to find some workarounds or use earlier versions.
CHRISGNICHOLAS · 26 Aug 2007, 00:42 UTC
We were wondering if we can disable this sound subsystem altogether (i.e. not even link against it) and use something else that also supports voice input.

thx/Chris
CHRISGNICHOLAS wrote:We were wondering if we can disable this sound subsystem altogether (i.e. not even link against it) and use something else that also supports voice input.

thx/Chris


helo chris,

as far as i know you can use any sound library you prefer. the EDGELIB includes only a wraper interface around hekus (and a defualt "silence" wraper).

i looked up the page for you in the reference: http://www.edgelib.com/index.php?node=947

good luck!

petre.
CHRISGNICHOLAS · 26 Aug 2007, 21:14 UTC
thanks! (currently deep into the silly "sprintf" issues of linking, but have renewed hope the 'wrapper' funcs can be un/re-wrapped.

Chris
Hi,

It's possible to create your own ClassESound wrapper to make it use another library (like fmod). Here is how to do it:

Make a copy of edge\include\esound\silent.h, it will become your wrapper. The header file contains callback functions which need to call the sound library of your choice (for example, add code to ESound_Open to open the sound device). After the wrapper is finished, you can include it to your EDGELIB application:

Before including edgemain.h, define ESOUND_CUSTOM, include your wrapper header file and include the header files of the sound library you're using.

Let me know if you need more help.
Maybe someone knows good shareware or freeware sound libraries, because Hekkus is not working for me now?
CHRISGNICHOLAS · 27 Aug 2007, 15:30 UTC
haven't played with it yet, but perhaps check out:

http://libsssd.sourceforge.net/

Chris