Hi everyone,
Can the eight samples which SDL_mixer is capable of playing be MP3s
instead of WAVs? I know that the additional background music channel
can be MP3 (as well as MID, MOD, S3M, IT and XM, or WAV) but would like to
take advantage of the excellent compression of the MP3 format for
sound samples. I believe the answer is, “no, only the background
music can be MP3” but want to doublecheck this…
Assuming the sound samples cannot be MP3, is there a facility in
SDL, SDL_mixer, or smpeg to convert an MP3 to a raw buffer, which
could then be used as one of the sound samples for SDL_mixer? Again,
I really want to store sound samples as MP3s, and then either use
them directly, or uncompress them to a buffer usable by SDL.
My application will very likely have minimal permanent storage (maybe
a small flash HDD) but should have sufficient CPU power to decode
several MP3s simultaneously, or at least sufficient RAM to decode
MP3s once and store them in a buffer for use by SDL_mixer, assuming
there is a facility to do that. My main goal is to reduce the impact
on the HDD by storing MP3s instead of WAVs…
Thanks for any suggestion, ideas or URLs,
Steve Madsen
H2Eye Ltd.
24-28 Hatton Wall
London EC1N 8JH
UNITED KINGDOM (UK)
Tel: +44 (0) 207 404 9600
Fax: +44 (0) 207 404 9490
Email: @Steve_Madsen