About PlayMus / PlayWave comming with SDL_Mixer Library

Do PlayMus or PlayWave that come with SDL_Mixer Lib. play MP3 Files
when compiled with using SMPEG ???

CU

“Torsten Giebl” wrote:

Do PlayMus or PlayWave that come with SDL_Mixer Lib. play MP3 Files
when compiled with using SMPEG ???

Mix_PlayMusic() / Mix_FadeInMusic() should handle MP3, yes. Experiment
with the playmus and playwave programs that come with the library to
find out what can be played. (I spent some time whis weekened looking
for bugs in my code only to find that it was SDL_mixer that needed
to be fixed to handle the file I was trying to use. :slight_smile:

Torbj?rn Andersson

> (I spent some time whis weekened looking > for bugs in my code only to find that it was SDL_mixer that needed > to be fixed to handle the file I was trying to use. :-)

That’s a funny way to say “I wasn’t doing it right.”

:wink:

(Just kidding!)

-bill!On Mon, Sep 10, 2001 at 05:52:24PM +0200, Torbj?rn Andersson wrote:

I’m fairly certain “playwave” only plays WAVs. :slight_smile:
I’m mostly certain “playmus” only plays things considered Music by SDL_mixer.
(eg, MODs and friends… I’m not sure that that includes MP3s.)

I believe, though, SMPEG comes with a “plaympeg” program.

-bill!On Mon, Sep 10, 2001 at 02:31:39PM +0200, Torsten Giebl wrote:

Do PlayMus or PlayWave that come with SDL_Mixer Lib. play MP3 Files
when compiled with using SMPEG ???

Do PlayMus or PlayWave that come with SDL_Mixer Lib. play MP3 Files
when compiled with using SMPEG ???

playmus does, but you’ll probably do better to use plaympeg that comes
with SMPEG.

–ryan.

I’m fairly certain “playwave” only plays WAVs. :slight_smile:

It plays .VOCs, too.

I’m mostly certain “playmus” only plays things considered Music by SDL_mixer.
(eg, MODs and friends… I’m not sure that that includes MP3s.)

It does include MP3s, actually, although I personally consider MP3 data to
fall more into the “wave data” category. If nothing else, this limits us
from mixing more than one MP3 channel at a time.

I’ll be fixing this in the future, as I discussed a while ago.

I believe, though, SMPEG comes with a “plaympeg” program.

…which is somewhat better at play MP3s than playmus is anyhow. :slight_smile:

–ryan.

William Kendrick wrote:

That’s a funny way to say “I wasn’t doing it right.”

Yes. :slight_smile:

To make a long story short, I’m trying to add sound support to the
Unix version of game library. I had it half-working using MikMod, but
then I decided to try SDL_mixer instead because I thought that would
make it easier to support the features I hadn’t been able to get
MikMod to do for me.

I was half right in that SDL_mixer was easier for me to understand
enough so that I could add the missing features.

The last hurdle was that I was trying to play a MOD file that
libmikmod 3.1.9 handles fine, but which the subset of libmikmod 3.1.8
that’s included in SDL_mixer does not.

Torbj?rn Andersson

“Ryan C. Gordon” writes:

I’m fairly certain “playwave” only plays WAVs. :slight_smile:

It plays .VOCs, too.

I’m mostly certain “playmus” only plays things considered Music by SDL_mixer.
(eg, MODs and friends… I’m not sure that that includes MP3s.)

It does include MP3s, actually, although I personally consider MP3 data to
fall more into the “wave data” category. If nothing else, this limits us
from mixing more than one MP3 channel at a time.

I’ll be fixing this in the future, as I discussed a while ago.

I believe, though, SMPEG comes with a “plaympeg” program.

…which is somewhat better at play MP3s than playmus is anyhow. :slight_smile:

In general the distinction between “music” and “sound effects” isn’t
entirely perfect. Instead there should be a difference between music
(midi, mods which are not simply sound), streaming audio (mp3, ogg,
wave and all other “simple” formats), sound effects (ie audio loaded
and converted once, like waves are today).

I wrote custom code to load and decode ogg streams for my game. Not
very hard, but it’s something that SDL_mixer probably should handle.–
[ Below is a random fortune, which is unrelated to the above message. ]
Q: What happens when four WASPs find themselves in the same room?
A: A dinner party.

I wrote custom code to load and decode ogg streams for my game. Not
very hard, but it’s something that SDL_mixer probably should handle.

It does. :slight_smile:

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment