PDA

View Full Version : Distorted Sound



cairnswm
11-04-2006, 08:01 PM
As many of you know I always seem to have problems with the sound in my games. Tonight I found something interesting.

I have exactly the same file and sound files (they were just copied to the other directory). In the original directory the sounds work fine, in the new directory all sounds are distorted. Its almost like its dependant on the directory the exe is running from...

Very strange.

I have tried copying (one by one) each version of SDL_Mixer that I have on my computer to the new directory with no significant changes in the sound quality.

Any ideas?

PS - I'm away for a while - I will read the replies next week.

savage
11-04-2006, 08:43 PM
Do you have a minimal example that shows the problem occuring?

WILL
11-04-2006, 08:46 PM
I have used the SDL_Mixer several times in my own projects. I know for a fact that if you are setting the playback freq to 44100 when playing back a MODule it will sound crappy (same distortion/staticy sound) in Windows. Linux it's supposed to sound ok(have not tried it personally).

This may be the same problem. Or possibly related. Try reducing the freq to 22050 and see if the distortion goes away.

This is an issue I have aswell with SDL that I'll also be looking to resolve. Be sure to let us know what you find out. ;)

cairnswm
17-04-2006, 05:51 PM
Seems to be an SDL.dll version issue - nothing to do with SDL_mixer.... Still making sure though.