PocketMatrix forums

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

New sound system (Hekkus Sound System) for ppc available!

Well, I have release the first version of my sound system for ppc. It's the same that was included on my PocketFrogPlus library with some enhancement and some bugfixes. It comes with full source code and it's free for free/shareware and commercial games too.

Some features:
* fast mixer routine (written from scratch), minimized data access and no division used!
* support all mips, sh3, arm and xscale PocketPC.
* support also Win95/98/2000/XP for cross platform development (code on Win32 and play on WinCE :))
* mix up to 3 ProTracker module and up to 64 waves sound.
* very easy api, you can do all with 4 little C++ class.
* free for freeware/shareware and commercial games!
* source code included!

On my website I have included a minimal GapiDraw application that show how you can add sound on games based on this library, but you can easily use it with other graph lib as well.

The package include also documentation for all classes and function of my library.

Download it on www.shlzero.com and write me at gersen@shlzero.com your impression, bugs report or anything you want.
Dave Johnston · 11 May 2003, 18:46 UTC
Just a recommendation: This sound system has proved excellent in PocketFrogPlus and so if you are looking for sound capability in your own game, Hekkus really is worth trying. Excellent performance and accuracy - not had a problem with it, ever.

So go forth and download!
It would be interesting to see how this compares to FMod and MikMod performance-wise. If it requires roughly the same cycles to play a given mod then FMod could be in trouble.

Dan East
Does it play xm modules? The website doesn't say.

Dan East
Dave Johnston wrote:
Just a recommendation: This sound system has proved excellent in PocketFrogPlus...


Thanks Dave :D

Dan East wrote:
Does it play xm modules? The website doesn't say.


No, for now it only plays standard 4 channel ProTracker module, I'm writing a new mixer that can play xm but I have other job to finish first (my first ppc games :wink: ). It is surely faster than mikmod because it is optimized for embedded system (I have made a derived version that works on series 60 as well with optimal performance). Oh, the very first version works on GameBoy Advance too (and it was fast for a C lib on this relative slow device), so it is surely fast, but I don't know how compared to fmod.
Before the xm mixer I'll add support for all stereo and mono waves (for now it only support 8bit mono waves).
But it is already a good sound library that was used on a few shareware games without problems... and, of course, it's free :D
It was also used in Invasion: Trivia, so you have at least one commercial title to your credit as well! :)

I can tell you all, as a performance reference, that Invasion: Trivia in one part has a MOD file playing and then mixes in various WAVs for sound FX. All this is going on while doing full-screen redraws including at one point a nearly full-screen alpha blend. On my stock Casio E-125, the frame rate stays at a very steady 30 throughout (it's hard-coded to run at that rate, it could probably go a bit faster). This was using PocketFrog.

That to me says it has very good performance.
warmi · 12 May 2003, 16:45 UTC — SoundFX
I just started using it in my project.
Works great without any slowdowns or anything - the only problem I have is that for each sound being played one can hear a characteristic click.
I vaguely remember that this is a common problem for mixers and the way to avoid it is to feed the mixer with wave of silence (literally) all the time to avoid constant re-initialization of sound hardware ( I think I remember reading somewhere that this click was related to initialization of hardware or something like that.)
Any thoughts on this issue ?

Thanks
Thanks fzammetti, I'll try your new game... I'm curious on how you have used my sound system :)

Warmi:
It's not a mixer problem, it's a wave loader problem. Some waves are saved by some software in a strange way and sometimes my loader try to play some byte that don't are part of the sample. So you hear a click. Please send me one or two of this sample so I can zap this bug :)
My mail is gersen@shlzero.com

Oh, one question first...
Do you hear this clicks with the Minimal example too?
warmi · 12 May 2003, 18:50 UTC — sound
Frankly, I never tried any of the examples on my device - only on the desktop and there niether the example nor my game clicks - it only happens on the device.
But I will double check this later and get back to you with more detailed description of the problem.

Thanks
The sound system is also used in Dr. Pocket. Unless the music volume is set to zero, there's always a .mod file playing, with .wavs played when actions occur.

As for performance, the game only drops a few fps with the .mod playing. I had a minimum target of 30fps when I developed Dr. Pocket, and it runs at 30-31fps with the music playing. I think it's well worth trading a few frames for background music.
I have checked the wave loader and it seems right. If you hear the click only on your device probably the problem is on another place. Try the minimal with sound gapidraw app that you can find on the Hekkus download page and tell me if you hear the click on this app too.

Which ppc do you have?
Do you hear this click only when you play a soundfx?
Do you hear some clicks when you are playing only a background mod?

My mixer routine never stop, if you don't play anithing my mixer play a silence wav so... it's strange that it sounds a click.

Thanks
You were absolutely correct.
I substituted your blink.wav for one of my waves and it does play correctly on my ipaq - there has to be something wrong with my waves ( I saved them with cooledit).
Anyway, I will play around with it ..
Thanks for your help

PS.
I am pretty sure it is CoolEdit that is introducing that click for even your blink.wav file started clicking once I saved it using CoolEdit.
Do you have any recomendation for an app that will save wav files in the format that won't introduce clicking and other stuff during playback ?
Thanks again.
You could try Sonic Foundry's Sound Forge
Gersen... Can the lib play tones? I'm looking for a library that can play a tone say - 440hz sine wave for 5 seconds etc...

FMod can do it but I'm having some problems and it costs $100 per application.
It is a very great help for a newbie like me.

Thanks a lot.
Warmi:
I have fixed the bug, now the loader are perfect (or it seems to be :wink:). Before to release the new version can you test the lib with your waves on your pocket? Can I send the new version to your email address (it's a 100kb attachment)?


draklava wrote:
Gersen... Can the lib play tones? I'm looking for a library that can play a tone say - 440hz sine wave for 5 seconds etc...


No, the lib can't play raw data, you can however try to insert this sine wave directly to a soundfx object, but you have to play a bit with the lib's source code.
warmi · 13 May 2003, 15:23 UTC — soundfx
Sure ,mail it to warmi@warmi.net

Thanks for help
I have released a new version of Hekkus (v. 0.96.1) that fix the bug experienced by warmi. I have also add pan support for SoundFX object.

Download and enjoy the new version :D
smigyull · 14 May 2003, 16:13 UTC — series 60
Hi, you mentionned earlier that you programmed a version for series 60. Do you have plans to make it available?

Thanks,
--smig
Yes I want to release the series60 version too one day... :). It works very well on my 7650 but it's a very old version compared to the ppc ones. I have also a graph lib that I have coded for my bonk demo on the 7650 that I want to release but I have for now no time to complete it and make it decent for a public release :?.