rnd plays wav 48000 KHz too slowly
Moderators: Flumminator, Zomis
- armanelgtron
- Posts: 29
- Joined: Sat Jul 25, 2015 8:25 pm
rnd plays wav 48000 KHz too slowly
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.
Re: rnd plays wav 48000 KHz too slowly
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.
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.
Re: rnd plays wav 48000 KHz too slowly
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?
- armanelgtron
- Posts: 29
- Joined: Sat Jul 25, 2015 8:25 pm
Re: rnd plays wav 48000 KHz too slowly
Debian 7 Wheezy (64 bit)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?
3.3.0.1 SDL (built by debian) I'll leave a thing whatever later.