PocketMatrix forums

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

Hekkus Sample w/PF 0.7.0

I'm obviously missing something here (could be a brain), but I'm trying to get the Hekkus sample that comes w/PF.0.7.0 to compile and I end up with:

Hekkus.obj : error LNK2019: unresolved external symbol "public: __cdecl SoundFX::SoundFX(void)" (??0SoundFX@@QAA@XZ) referenced in function "public: __cdecl HekkusSample::HekkusSample(void)" (??0HekkusSample@@QAA@XZ)

I've added to my Project->settings->link->input->additional lib path:

"D:\Windows CE Tools\wce300\HekkusSoundSystem\lib\arm\release"

and I added to my Project->settings->c/c++->preprocessor->additional include dirs:

"D:\Windows CE Tools\wce300\HekkusSoundSystem"

I'm trying to compile under evc 3.0 and I do have Hekkus installed under:

D:\Windows CE Tools\wce300\HekkusSoundSystem

I'm using version 0.98.0 (the current stable) release of Hekkus. I've even added the "libcmtd.lib" to ignore libs, as the stated in the hekkus.cpp.

Has anyone else been successful in compiling the hekkus sample with PF? Anyone have a clue as to what I'm botching here?

Hayden
You're doing a #include "hss.h", right?
Also, that has to be included in the search path somewhere, usually under Tools->Options...->Directories
(Note that you'll have to add it for all of the different build types though.)
Also, I add "hss.lib" to Project->Settings...->Link

Hope this helps,
-John
Well, I was sure it was a version issue... I thought that maybe something in Hekkus had changed since I created that sample and that you were using a newer version. But, I was just able to compile the sample against Hekkus 0.98.5.b3 (the latest) and all I got was one warning on the lines:

// Initialize the Hekkus Sound System
m_sound.open(22050, 10, 10, true);

Change that to:

// Initialize the Hekkus Sound System
m_sound.open(22050, 8, false, 2, 2);

And the warning will go away (it was an interface change in Hekkus, nothing major).

But as for your compile problem, I'm at a loss to explain it, but I can at least verify that the sample compiles and executes against the latest version of Hekkus, as well as at least one previous version (probably around 0.96.3, I don't remember for sure what I had when I did the sample). I did this in both VC++6.0 AND eVC++3.0.
Okay... I'm going to start from scratch. I think I may have <borked> something by trying too many things. Thanks for the help and confirming that the new version works. I'll post back my results. I'm sure that I borked something though.
Starting from scratch did the trick!! I don't know what happened the first time round, but it's working now.

Now I have Hekkus and MikMod both working and I have to decide between them. The Hekkus did sound very crisp and clear. MikMod sound like it had reverb and then a low static sound after playing a wav. I need to test with mods.

Does anyone have a preferences between Hekkus and MikMod?
Hekkus, without a doubt in my mind. It's by far the simplest sound library out there, and also perhaps the fastest (I know, FMod claims it is, and maybe it is, but Hekkus is fantastic).

A quick glance at the MikMod features, when compared to Hekkus, they are pretty close. Looks like ModMod supports some more file formats, and supports compressed files, but it's not too different.

Seems though that MidMod is really a Mod player, while Hekkus is more of a general-purpose sound library, of which one feature is Mod playback,

Check both out, see what you think. My vote goes with Hekkus though.
fzammetti,

After testing both of them, I agree with you. I figured out the static problem in MikMod and I did side by side comparisons. Over all I think Hekkus is more complete for what I need and I'm going to use it for now. Gersen has a new found admirer ;).
Gersen rox!
Thank you guys, I'm touched :)