You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.

#1 Support » What is the optimum sample rate when re-encoding audio for DS games? » 2024-07-27 03:56:00

Cyanea
Replies: 1

Hi, wasn't too sure whether to stick this in Support or General, so feel free to move if necessary.

I'm currently working on a mod/romhack for FFIV DS that aims to replace the low quality audio used for the voice lines with higher quality encodes.
Source for these encodes is the PC version. I already know how to extract the pc files and then encode them for the DS version (and the results look quite promising).
But I am uncertain on what would be the best sample rate to use for the newly encoded files. Hope I can find the answer here since DeSmuME would be my preferred way to play the game.

Some details first:
- The PC version uses 44100Hz sample rate for voices
- The DS original uses 16384Hz sample rate for voices
- (As a side note, DS intro cinematic uses 32000Hz for its music)

From my research it seems like (please correct me if wrong) :
- real DS hardware outputs audio at 32768Hz
- DeSmuME's emulated system outputs audio at 44100Hz
- MelonDS's emulated system outputs audio at 32768Hz

Subjective tests by me listening to the replaced voices at various sample rates:
- No audible difference between 32000Hz and 32768Hz on either emulator
- DeSmuME sounds better than MelonDS (and also best overall) IF using 44100Hz encodes
- in MelonDS 44100Hz encodes sound worse than 32768Hz encodes
- MelonDS sounds better than DeSmuME IF using 32768/32000Hz encodes

Obviously disabled interpolation in both emulators before testing.
Do these observations make sense from a technical point of view? Because if so, then it seems like it'd be best if I created multiple versions of my mod (1 for each emulator/sample rate)?
What about playback on real hardware though? Going to assume that the best sample rate in that case would be 32768Hz?

And what happens if DeSmuME or another emulator decides to change their audio subsystem to reproduce audio at the host system's rate (e.g. 48000Hz)?
Would a 32000Hz encode actually be preferable in that case since going from 32000Hz to 48000Hz should be less prone to (audible) errors than 44100Hz to 48000Hz?
Guess that last one would depend on what kind of resampler the emulator uses.

Board footer

Powered by FluxBB