Is there an alternative to SDL_mixer

I have been using SDL_mixer, but sound quality is very poor on a new machine I
acquired. I tweeked various parameters, like buffer size, frequency, channels
etc. But sound quality is just not there. This machine plays sound perfectly
using other programs (like Linux play command). Moreover, this SDL program
plays perfect sound on other machines.

So the problem can be pin pointed to implemntation of SDL_mixer on this machine
(AC97 sound card integrated on the motherboard).

Can someone suggest some alternative library to SDL_mixer for sounds, please.

-Laeeq_M_Khan at hotmail.com

You might succeed with FMOD or OpenAL.

Greets,
Thunder

Can someone suggest some alternative library to SDL_mixer for sounds, please.

There’s always OpenAL…but in this case, fixing SDL_mixer might be
nice, too.

–ryan.

There is also SDL_sound:
http://www.icculus.org/SDL_sound/

Anyway, it sure sounds more like broken drivers than really SDL_mixer’s
fault.

RicardoEm Quinta 01 Dezembro 2005 16:50, o Szalay Krist?f escreveu:

You might succeed with FMOD or OpenAL.

Greets,
Thunder


Trying to establish voice contact … please ____yell into keyboard.

That’s what I was thinking. Tried using all of [ALSA, OSS, ESD, etc.] to
see which ones don’t ‘sound right’?

-bill!On Thu, Dec 01, 2005 at 05:40:43PM +0000, Ricardo Cruz wrote:

There is also SDL_sound:
http://www.icculus.org/SDL_sound/

Anyway, it sure sounds more like broken drivers than really SDL_mixer’s
fault.

Ricardo Cruz <rpmcruz clix.pt> writes:

There is also SDL_sound:
http://www.icculus.org/SDL_sound/

Anyway, it sure sounds more like broken drivers than really SDL_mixer’s
fault.

Ricardo

If the you suspect sound driver is broken, then why Linux’s command

play abc.wav

works perfectly?

-Regards,
Laeeq

If the you suspect sound driver is broken, then why Linux’s command

play abc.wav

works perfectly?

Because one could be using Open Sound System and the other ALSA.

–ryan.

Hi Laeeq,

The thing is that the play command and the SDL_mixer library are probably
using two different backends. Probably, “play” uses /dev/dsp directly, while
SDL_mixer is using it through Alsa. Sometimes, arts from KDE or some other
sound server gets in the way. I don’t understand much of how sound works in
Linux (or any other platform for that matter), but stuff like this happens.

What I purpose you to do is to ask SDL_mixer to use another backend. I
believe you do this by using environment variables, but I’m not sure…
Someone?

In case you want to check games that use other sound libraries to see if the
sounds works good, you can use the advanced search from the Linux Game Tome:
http://happypenguin.org/test/search
(fill in the ?Additional Requirements:? field with SDL_sound, OpenAL and FMOD)

Cheers,
RicardoEm Sexta 02 Dezembro 2005 21:14, o Laeeq Khan escreveu:

Ricardo Cruz <rpmcruz clix.pt> writes:

There is also SDL_sound:
http://www.icculus.org/SDL_sound/

Anyway, it sure sounds more like broken drivers than really SDL_mixer’s
fault.

Ricardo

If the you suspect sound driver is broken, then why Linux’s command

play abc.wav

works perfectly?

-Regards,
Laeeq


Speak softly and carry a +6 two-handed sword.

Can someone suggest some alternative library to SDL_mixer for sounds, please.

There’s always OpenAL…but in this case, fixing SDL_mixer might be
nice, too.

OpenAL is EXCELLENT but not support mid and mod files (it designed for
other purposes).

If you want to play only ogg / pcm wav files try OpenAL with ear and
source at 0,0,0.
If you want to play mid, mod, ogg etc files stay in SDL_mixer

I use SDL_mixer when I don’t want 3d sound and I want music from mod or
midi files.

Hello !

SDL_sound is a good alternative to SDL_mixer.
The only thing that SDL_mixer has and SDL_sound
not, is a mode to push the generated
sound to the output automatically. It would be also
easy to write a SDL_mixer wrapper for SDL_sound.

CU