The International Simutrans Forum

PakSets and Customization => Other paksets => Pak64.German => Topic started by: captain crunch on August 06, 2017, 09:36:19 AM

Title: Sound playback in SDL2 backend and pak64.german
Post by: captain crunch on August 06, 2017, 09:36:19 AM
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 (http://forum.simutrans.com/index.php?topic=12860.msg127711).

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 (http://forum.simutrans.com/index.php?topic=12860.msg127711).
Title: Re: Sound playback in SDL2 backend and pak64.german
Post by: Frank on August 06, 2017, 01:27:18 PM
please test

p64g_sound.zip (http://simutrans-germany.com/pak.german/p64g_sound.zip) ~1,6 Mbyte
Title: Re: Sound playback in SDL2 backend and pak64.german
Post by: captain crunch on August 06, 2017, 09:35:36 PM
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"(?).

Title: Re: Sound playback in SDL2 backend and pak64.german
Post by: Frank on August 07, 2017, 01:15:11 AM
this file is from pak64

Title: Re: Sound playback in SDL2 backend and pak64.german
Post by: DrSuperGood on August 07, 2017, 05:26:34 AM
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.