rnd plays wav 48000 KHz too slowly

Found a bug in R'n'D? Report it here!

Moderators: Flumminator, Zomis

Post Reply
User avatar
armanelgtron
Posts: 29
Joined: Sat Jul 25, 2015 8:25 pm

rnd plays wav 48000 KHz too slowly

Post by armanelgtron »

Rocksndiamonds plays WAV 48000 KHz files at the wrong speed and pitch. (sounds like a tape playing at the wrong speed). 44100 KHz WAV files work fine.
Image
User avatar
Holger
Site Admin
Posts: 4073
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: rnd plays wav 48000 KHz too slowly

Post by Holger »

R'n'D internally uses 22050 Hz, and SDL2_mixer downsamples WAV files with higher frequencies to this value. This should be true both for WAVs with 44100 Hz and 48000 Hz. I have tested this with WAV files in 22050, 44100 and 48000 Hz, and they all sound the same as when played with an external player (tested with SDL2's own "playwave2" binary, which internally works like R'n'D, and with the audio player "audacious").

Can you provide me with a test WAV file with 48000 Hz to reproduce this?

Maybe something's wrong with that WAV file, or I might have overseen a bug in my game.
filbo
Posts: 647
Joined: Fri Jun 20, 2014 10:06 am

Re: rnd plays wav 48000 KHz too slowly

Post by filbo »

What OS & version; what version of RnD; built by you, downloaded prebuilt from here, or built by your distro; what version and build pedigree of SDL libraries?
User avatar
armanelgtron
Posts: 29
Joined: Sat Jul 25, 2015 8:25 pm

Re: rnd plays wav 48000 KHz too slowly

Post by armanelgtron »

filbo wrote:What OS & version; what version of RnD; built by you, downloaded prebuilt from here, or built by your distro; what version and build pedigree of SDL libraries?
Debian 7 Wheezy (64 bit)
3.3.0.1 SDL (built by debian)
snapshot51.png
snapshot51.png (16.66 KiB) Viewed 5919 times
I'll leave a thing whatever later.
Image
Post Reply