Sound FX/Music file formats?

Previous topic - Next topic

bigtunacan

In the docs I see the following formats being supported.
   mp3, wav, midi.

Is this the same for all devices supported by GLBasic?  For example I don't see in docs anywhere that iPhone will support midi?  Is one format preferred over all others?

Also, should same file format be used for music and sfx?

I notice there is a MUSICVOLUME function that allows me to control the volume of music at any given time.  What about for SFX?  I see the hush function which allows me to stop SFX, but nothing that allows me to adjust their volume.

Ian Price

iPhone can use .MP4 too. Never tried MIDI, as most MIDI sounds awful nowadays.

Some formats make use of .OGG too (GP2X, Wiz etc.)

PLAYSOUND has it's volume controls in the command itself, so no need for a SOUNDVOLUME command. Although one could be useful for making sound more dynamic - eg sound gets louder as you get closer to an object, but then Gernot would have to re-write the PLAYSOUND routines.
I came. I saw. I played.

MrTAToad

You also need to make sure the bit rate is also suitable too...