PocketMatrix forums

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

N95 HekkusSound

Hello,

When I add the HekkusSound lib to my project it will compile ok and install ok but stops my program running at all on the phone. ie looks on the phone as though it is ignoring my attempt to run my program. No screen change at all.

my mmp contains...

CAPABILITY UserEnvironment MultiMediaDD
USERINCLUDE ..\src\HekkusSoundSystem\lib\symbian_v9-gcce
USERINCLUDE ..\src\HekkusSoundSystem\include
USERINCLUDE ..\src\HekkusSoundSystem

LIBRARY HSS.lib

Source Code....

#define ESOUND_HEKKUS //External sound Lib
ClassESound* Sound;
Sound = new ClassESound;

if( Sound->LoadSoundEffect( 0 , "C:\\data/ARData/zaap.wav" ) != E_OK)
return(E_ERROR);

Sound->PlaySound( 0, 0, 0, false, SFX_NONE, 0);
lanceabson · 14 May 2008, 09:28 UTC — Permissions?
To get the sound working do I need to setup any Permissions / capability?
Hi Lance,

For sound you don't need any capabilities. If you'd used a function requiring a capability, it would return an error instead of crashing your program.

To fix your program, you need to use the ClassESound object (ecd.snd) from ECD.
lanceabson · 15 May 2008, 08:30 UTC — Reply
Hi,

If you look at my first post it shows that I am already using ClassESound.

When I define #define ESOUND_HEKKUS is when my program stops working.

Regards,
Lance
Hi Lance,

Yes you're using ClassESound, but not the object that's already available from ECD. It's important that you use this object, because EDGELIB handles its update timers, etc.
I'm having the same issue as well. I'm using the ecd.snd structure but the application simply will not run.

Do I manually need to copy any Hekkus files to the phone? I'm using a N95 btw. This fails on both the normal N95 and the 8GB version.
Hi Countzero,

The application probably isn't working because a .dll file can't be found.

We recommend against using the dynamic library because it can generate problems when multiple applications are installed on the phone using different versions of Hekkus. Getting the static library requires a donation to be made to the author of Hekkus Sound System.
Hi, Edge.

Same thing is happening to us. We are able to compile for hekkus for all platforms except symbian s60 3rd. I think it is not a problem of just having the static library because it just doesn't work.

As I understand the problem with the dynamic library only should happen when installing different EDGE applications, but we are only working with one.

Can you see if you can make it work?
Hi Edge,

We have the same problem. Our application crash at launch, only on nokia S60 FP3 devices.
The same problem occurs with the sony w950i.
Hi,

Zalo: the DLL program isn't related to EDGELIB. For example, if another company releases a game using hekkus (and not EDGELIB), it still installs the DLL in the sys/bin folder. If your application installs itself, it will overwrite this DLL making it incompatible with the other application. Is your application crashing as well?

To test hekkus please test the following:
- Try to disable hekkus, but keep your code using ClassESound and see if it still crashes
- Make sure ecd.snd->Open() is located in OnDisplayInit()
- Check at which point it crashes, by just defining ESOUND_HEKKUS, opening the sound system or by loading a sound/music file