jniemann66 / ReSampler

High quality command-line audio sample rate converter
GNU Lesser General Public License v2.1
160 stars 26 forks source link

Gapless playback not perfect #32

Closed dijkstrah closed 3 years ago

dijkstrah commented 3 years ago

I have resampled some tracks with your resampler from 88/24 to 44.1/16 and I noticed less than perfect gapless playback. A soft click happens between two consecutive tracks, where there should be none, since it is not in the original files.

So I resampled the tracks again with SOX and with SSRC to find out more about where the flaw could be. With these resamplers I heard no pop and upon inspection of the number of samples the latter showed the same amount of samples: 14 449 512 samples whereas ReSampler cut it short at 14 449 461 samples.

--noDelayTrim results in the amount of samples to be the same as SOX and SSRC, that happen to be aligned to the 588 samples boundary of the CD format. And yet, when one track transitions to another, I can still hear a soft click. It seems time is being shifted in the resulting file by 51 samples?

dijkstrah commented 3 years ago

Gapless is just finicky and requires editing in most cases.