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.
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:
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.