This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Hekkus Sound System 0.97.5 released!


Hekkus Sound System 0.97.5 released!

Postby gersen » Aug 9, 2003 @ 6:31am

I have worked a few hours on my sound lib... only two new features but I think someone can find it userful :wink:

* added support for Microsoft ADPCM compressed mono WAVs.
* added SoundFX::maxplaybacks function to control the maximum number of times a sample can play back at once.

A little note on the ADPCM support: for now it only support it at loading time so hekkus don't play this WAVs in compressed form. When you load a compressed WAV the library decompress it and play it as a common 16 bit mono sample. I don't want to kill my engine performance :)

As always you can download it at http://www.shlzero.com
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby fzammetti » Aug 9, 2003 @ 10:35pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Aug 9, 2003 @ 10:38pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby fzammetti » Aug 9, 2003 @ 11:30pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby gersen » Aug 10, 2003 @ 1:23am

User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby Dave Johnston » Aug 10, 2003 @ 9:06am

User avatar
Dave Johnston
pm Insider
 
Posts: 356
Joined: Mar 31, 2002 @ 6:14pm
Location: UK


Postby gersen » Aug 10, 2003 @ 3:03pm

Yes you can and it's not so difficult to do.

First create your own class for this one, somenthing like this

MySoundFX : public SoundFX {

public:
...
...

bool setData(char *wavdata, int bytelength, int frequency, ...);
};

On setData you have to initialize some SoundFX variables that are set on SoundFX::load(...) function. Since you don't want to call the standard load function on your MySoundFX you have to initialize it manually:

m_sample -> here you have to write the pointer to the raw wave data.
m_freq -> the frequency of the sample (11025, 22050, 16000, etc.)
m_length -> length in bytes of the wave data.

bool m_8bit -> the raw data are a 8bit uncompressed mono or a 16bit uncompressed mono sample? set true if 8bit or false if 16bit

bool m_delete -> set true if you want that the the lib perform a delete [] m_sample when your MySoundFX are destroied. Set false if you don't want.
User avatar
gersen
pm Member
 
Posts: 147
Joined: Oct 19, 2002 @ 8:40am
Location: Italy


Postby Dave Johnston » Aug 10, 2003 @ 5:05pm

User avatar
Dave Johnston
pm Insider
 
Posts: 356
Joined: Mar 31, 2002 @ 6:14pm
Location: UK


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum