Using .mod and .mp3 files

Hi,

I’m just newbie trying to get a grip od SDL.

I read the docs, but haven’t found that SDL supports neither audio
module formats (.mod or .s3m), nor .mp3 or .ogg formats. Only wave and
raw samples can be loaded directly. Is this correct?

I programmed some game before, and I used fmod library. Can I use SDL
for graphics and Fmod for sound at the same time. I guess I should not
initialize SDL sound system at all.

What do you guys do with songs? When I convert my .mod files to .wav
each takes about 20-30 MB.–
Milan Babuskov
http://fbexport.sourceforge.net

Milan Babuskov wrote:

Hi,

I’m just newbie trying to get a grip od SDL.

I read the docs, but haven’t found that SDL supports neither audio
module formats (.mod or .s3m), nor .mp3 or .ogg formats. Only wave and
raw samples can be loaded directly. Is this correct?

I programmed some game before, and I used fmod library. Can I use SDL
for graphics and Fmod for sound at the same time. I guess I should not
initialize SDL sound system at all.

What do you guys do with songs? When I convert my .mod files to .wav
each takes about 20-30 MB.

Whoops! I just read the FAQ on website. All answers are there.

Sorry, I should have RTFM. (or RTFF :)–
Milan Babuskov
http://fbexport.sourceforge.net

Hi,

I’m just newbie trying to get a grip od SDL.

I read the docs, but haven’t found that SDL supports neither audio
module formats (.mod or .s3m), nor .mp3 or .ogg formats. Only wave and
raw samples can be loaded directly. Is this correct?

This is correct. WAV for sound and BMP for images is all SDL understands
internally.

If you want MP3, MOD, OGG, S3M sound/music files, or PNG, JPG, GIF graphics,
get SDL_mixer and SDL_image, respectively. ;^)

I programmed some game before, and I used fmod library. Can I use SDL
for graphics and Fmod for sound at the same time. I guess I should not
initialize SDL sound system at all.

That could work…

What do you guys do with songs? When I convert my .mod files to .wav
each takes about 20-30 MB.

Best bet is to just use SDL_mixer! :^)

http://www.libsdl.org/projects/SDL_mixer/

Good luck!

-bill!On Thu, May 29, 2003 at 09:12:12AM +0200, Milan Babuskov wrote:


bill at newbreedsoftware.com Hire me!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/bill/resume/

Have a look at the SDL_mixer library. It plays various high-level
audio formats with SDL, including tracker formats and Ogg Vorbis.
http://www.libsdl.org/projects/SDL_mixer/

Part of SDL’s design philosophy is to implement just the basic
platform-level support and let add-on library handle specific
file formats, etc. No reason to include MOD playback in the SDL
core, since it’s a high-level task and not platform dependent.
The WAV and BMP loaders aren’t even necessary, but are just there
as a convenience, mainly for quick tests.

http://www.icculus.org/armoda/

-JohnOn Thu, May 29, 2003 at 09:12:12AM +0200, Milan Babuskov wrote:

Hi,

I’m just newbie trying to get a grip od SDL.

I read the docs, but haven’t found that SDL supports neither audio
module formats (.mod or .s3m), nor .mp3 or .ogg formats. Only wave and
raw samples can be loaded directly. Is this correct?

I programmed some game before, and I used fmod library. Can I use SDL
for graphics and Fmod for sound at the same time. I guess I should not
initialize SDL sound system at all.

What do you guys do with songs? When I convert my .mod files to .wav
each takes about 20-30 MB.