News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

Sound playback in SDL2 backend and pak64.german

Started by captain crunch, August 06, 2017, 09:36:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

captain crunch

English: Sound samples sampled at rates that are not a power of 2 produce white noise instead of the intended sound with the SDL2 backend, see.

Deutsch: Geräusche mit Abtastraten ungleich der zweiten Potenz machen nur weißes Rauschen statt des gewünschten Geräusches mit der SDL2-Grafikschnittstelle, siehe.


captain crunch

Deutsch:
Danke, das hört sich viel besser an.
Die Datei

tree-cutting.wav:   RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 11800 Hz

sticht durch ihre Abtastrate aus den anderen heraus, wird aber laut "sound.tab" nicht verwendet(?).


English:
Thank you, this sounds much better.
The file

tree-cutting.wav:   RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 11800 Hz

stands out from the other files because of its sample rate, but is not used according to "sound.tab"(?).



DrSuperGood

The bug in the SDL2 audio component was resolved earlier this year and is scheduled for stable release soon. All one would then have to do is build using SDL 2.0.6 and all sounds should work. This is a much better solution than resampling them.