PocketMatrix forums

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

Sound

Can someone give me an example on how to play sounds/music using PocketFrog?
Conan · 10 Jul 2002, 09:35 UTC — Using sound with PocketFrog
I assume you want to do more than just load and play a .wav file which is very easy. The Asteroids source has sounds being played.

Important to note that the built-in sound feature in an earlier release has gone.

I spotted that 'Burning Sheep' was using FMod.

I suggest that all PocketFrog users discuss & agree if possible on a common approach. I've downloaded FMod and MikMod is easily available with some info within EasyCE
BurningSheep · 10 Jul 2002, 10:04 UTC
yes, I'm using fmodce, the small version which basicly supports wave and xm files. It's very well documented and easy to use, I added sound to my game in just a couple of minutes.
It's free as long as you are not selling your game, and if you do plan on selling it, it costs $100. If you can't earn that back with selling your game then there is no point in trying to sell it all ;)
Conan · 10 Jul 2002, 11:23 UTC — what's xm format
What's an xm format file then?

I have not tried either FModCE versions yet as I'm busy combining PocketGL & PocketFrog but will get to it soon.

at $100 it's got competition though from other libraries available so I may check out what Pocket-G offer also
I only want to play a simple wav file...
Conan · 11 Jul 2002, 07:15 UTC — playing sounds
The eVC++ help says:-
The following code example shows how to play the \Sounds\Bells.wav file.

PlaySound (TEXT("\\SOUNDS\\BELLS.WAV"), NULL, SND_SYNC);

Note: the SND_SYNC parameter is one of the flags for this call. They get added together with | eg: SND_SYNC|SND_NODEFAULT

Playing single .wav files one at a time is enough for some games. The other methods allow mixing of sound and playing a soundtrack with effects over the top.
BurningSheep · 11 Jul 2002, 12:35 UTC — what's xm format
Conan wrote:
What's an xm format file then?


an xm is a music module file

I haven't looked at all at other music & sound libs, i've downloaded mikmod, but haven't tried it out yet. I'm planning to check out other music libs as well... but fmodce is working perfect for me right now.