Pages: [1]
|
 |
|
Author
|
Topic: slow-reacting music and sound effects (Read 2543 times)
|
meonkeys
Zebranky food

Offline
Posts: 3
|
For some reason, it seems like the sound effects and music have a delay before they actually kick in. It's mostly noticable that the sound effects happen a moment or two after it seems like they should.
For instance, at the main game menu (New Game, Load Game Super Melee!, Setup, Quit), if I press the down arrow to select an option, the sound effect (alerting me to the fact that a different menu option was chosen) happens about half a second after the next option is highlighted.
Any suggestions on how to sync up the graphics and audio?
|
|
|
Logged
|
|
|
|
|
meonkeys
Zebranky food

Offline
Posts: 3
|
Fedora Core 4.
|
|
|
Logged
|
|
|
|
Novus
Enlightened
    
Offline
Gender: 
Posts: 1938

Fot or not?
|
I can duplicate your problems on SuSE 9.3 (on two different machines, one with an SB Audigy, the other with Intel AC97) by setting the SDL sound output to aRts instead of the default ALSA. Decreasing the aRts sound buffer size (e.g. through the KDE control panel) helps a bit, but the best solution is to switch to using ALSA directly instead of through aRts.
SDL checks the environment variable SDL_AUDIODRIVER for the sound driver to use. You can set this to "alsa" to use ALSA directly for sound. If aRts is running and your ALSA sound driver only supports one sound output stream at a time (which is typical for cheaper sound cards and integrated sound chips on older distributions; SuSE 9.3 seems to set up ALSA's built-in mixing; even lots of programs playing through ALSA to an AC97 card with one output works for me), the ALSA sound system will refuse the connection from SDL. In this case, suspend aRts ("artsshell suspend").
You can check what sound system SDL is using in UQM by reading the standard error output from UQM. You should see something like the following:
Initializing SDL audio subsystem. SDL audio subsystem initialized. Opening SDL audio device. using alsa at 44100 Hz 16 bit stereo, 4096 samples audio buffer Initializing mixer.
If it says "using arts" instead of "using alsa", the problem is as described above. "using dsp" may also appear, this should also work properly.
|
|
|
Logged
|
|
|
|
|
meonkeys
Zebranky food

Offline
Posts: 3
|
That worked like a charm. Thanks, folks!
Setting SDL_AUDIODRIVER to esd, alsa, or dsp all worked equally well.
|
|
|
Logged
|
|
|
|
Pages: [1]
|
|
|
|
|