Author Topic: Sound playback in SDL2 backend and pak64.german  (Read 379 times)

0 Members and 1 Guest are viewing this topic.

Offline captain crunch

Sound playback in SDL2 backend and pak64.german
« 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.

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.

Offline Frank

Re: Sound playback in SDL2 backend and pak64.german
« Reply #1 on: August 06, 2017, 01:27:18 PM »
please test

p64g_sound.zip ~1,6 Mbyte

Offline captain crunch

Re: Sound playback in SDL2 backend and pak64.german
« Reply #2 on: August 06, 2017, 09:35:36 PM »
Deutsch:
Danke, das hört sich viel besser an.
Die Datei
Code: [Select]
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
Code: [Select]
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"(?).


Offline Frank

Re: Sound playback in SDL2 backend and pak64.german
« Reply #3 on: August 07, 2017, 01:15:11 AM »
this file is from pak64


Offline DrSuperGood

Re: Sound playback in SDL2 backend and pak64.german
« Reply #4 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.