PocketMatrix forums

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

The Sound Lib Problem

Hi,

many posts have been written about the problems regarding sound libs for the PocketPC game development. Many of you guys use MikMod, since it's the only real alternative for "cash sensitive" game productions. But MikMod seems to add significant noise, thus decreasing the quality of your productions. Most of us can't afford the other, commercial players out there (fmod and co).

Yesterday i talked to the CEO of the Xiph.org Foundation, the guys responsible for the Ogg Vorbis CODEC project. Currently, there is no freely available ogg vorbis decoder for PocketPC, due to the fact that the decoder uses floating point math, which would be too slow on a PocketPC. Nevertheless, there is a fixed point version of the decoder, but it is commercial and will not be released under the GPL. After my yesterday's phone call i have the impression that Xiph.org would be willing not only to sell the fixed point decoder for a very competitive price (or much better, for a percentage of your sales), but would also create a complete mixer for the PocketPC that plays different formats and of course, ogg, thus being a real alternative to the existing players/mixers out there.

My question is, are you guys interested in this? How much would you pay or what percentage of your revenues would you be prepared to give away?

The development of the mixer would cost some money, but if we all show interest, we might be able to arrange a deal.

Of course, it is up to anyone with enough time and energy to adapt the existing, open source ogg decoder to use fixed point math and compile it for the PPC.

And no, i am in no way related to the xiph.org foundation :)

http://www.xiph.org/ogg/vorbis/index.html

cryo
The problem is that Ogg Vorbis takes more CPU power to decompress than MP3s (or so I've read)... so if you're thinking about using it during a game, I'm not sure Vorbis is what you want.

It'd be ok to use to play "intro" music or something though.
i don't know abot that, but i would have to see the fixed point version running. In fact, it can be seen running on the Sharp Zaurus, as theKompany's tkcPlayer licensed it. Anyone with a Zaurus here? :)

cryo
I love the Zaurus, it's so much faster than the PocketPC OS... I don't have one though, thinking about getting it, however. And it comes with Go preinstalled! Like 6 games are on it to start you off! I'm sure PocketQuake could be ported in no time, there is Linux source for it. I should start a Zaurus fan club or something, get a riot started, force some developers into make software for it.
Doesn't pocketdivx play .OGG files? At least it lets you register that file type.. I've never tried playing one.
Conan · 07 Aug 2002, 09:21 UTC — The sound lib problem
A standard usable affordable sound library is needed I agree.

Overlaoded's Rhino has a sound lib under development but does not know yet whether it will be available outwith the Overloaded community.

FMod has quite a lot of interest if you look at their CE forum. The pricing may be a bit over the top at $100 per shareware title.
Personally, I don't believe mp3 or ogg is very suitable as a generic solution for game music. Not only is the cpu load too high, the files will be too big too. Mp3 is 1Mb / minute at 128Kb/s I believe, if you go for lower quality that would still be at least 300Kb / minute. A game with 4 levels and a title tune would require 1.5Mb music data, and that's with tunes that cycle after 1 minute. We really need a good cheap (preferably free) tracker library.
mmm,

maybe PocketMidi is an idea?
It uses soundbanks, thus it would be very large.
Maybe one could make out of it a midi codec for Pocketpc.
Once installed, every game could use it.
Or we could try Adplug (used in Scummvm).
It doesnt require soundbanks(it emulates OPL2).

I think that using Adplug as a base someone should
make a midi driver for pocketpc.
Mp3 or Ogg would be great for sound bites though don't you think? Save a ton on storage space and you could dynamically load them per level(the effects that is).
actually we first thought about using ogg or mp3 as we needed to playback long speech sequences for a product that does not really need graphics performance, so the decoding overhead would be ok.

cryo
PocketDivx can play OGG, I think it uses the floating point decoder.

As for non-graphics intensive games, MP3/OGG is perfect. You can get very low bitrates for speech, and the filesize would be lower than any other codec.

A decent sounding MIDI lib for PocketPC would be the ideal solution. An advantage (and disadvantage) of PocketMIDI is that it can use any Timidity sound bank, but, a song done on one sound bank will sound strange on others. That, and the large file size.