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: 6
Joined: Sat Jul 25, 2015 8:25 pm

rnd plays wav 48000 KHz too slowly

Post by armanelgtron » Sun Aug 02, 2015 4:55 pm

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: 2715
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: rnd plays wav 48000 KHz too slowly

Post by Holger » Mon Aug 03, 2015 6:25 pm

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: 197
Joined: Fri Jun 20, 2014 10:06 am

Re: rnd plays wav 48000 KHz too slowly

Post by filbo » Tue Aug 04, 2015 6:37 am

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: 6
Joined: Sat Jul 25, 2015 8:25 pm

Re: rnd plays wav 48000 KHz too slowly

Post by armanelgtron » Thu Aug 06, 2015 1:50 am

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 2574 times
I'll leave a thing whatever later.
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests