IMA ADPCM format wav files incorrect - song length is shown as half what it should be
I have some very old .wav files recorded with an old voice recorder that I tried to burn to an audio CD with XfBurn. Here is their format:
adam>file song.wav
song.wav: RIFF (little-endian) data, WAVE audio, IMA ADPCM, mono 11025 Hz
When I added them to an audio composition, the audio length of the file is shown as half of what it should be (e.g. 9 seconds instead of 19 seconds). Attempting to burn the disc causes it to hang partway through the burn.
I could work around the issue by converting the file to a regular wav file using ffmpeg:
ffmpeg -i input.wav output.wav
Then it shows the correct file length when added to an Xfburn composition. The file type after the conversion by ffmpeg is:
output.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 11025 Hz
It seems like it might be assuming the data is 16 bit when it's actually 8 bit. That would explain the halved audio length.
Other CD burning software, including pburn on Puppy Linux and the Windows 10 CD writing software, did not make this mistake and could correctly handle the files and showed them as having the correct length.