On 05/23/2010 11:20 AM, Erik de Castro Lopo wrote: > [email protected] wrote: > >> On Sun, May 23, 2010 at 08:52:16AM +1000, Erik de Castro Lopo wrote: >> >>> I really don't think any modification is necessary. >> >> At least one: the sample rate value in the header must >> remain the same. > > sndfile-resample accepts a: > > -by <ratio> > > command line option where <ratio> is given as a floating > point value.
yes, that's what i've used in the end. but as i said in another posting, i've been confused about it, because the ratio is displayed rounded to 6 decimals, and the apparent target rate is an integer (i.e. the number that ends up in the target header), even though the real sample rate is the desired fractional value. > After the conversion is done, the sample rate in the destination > file's header. > >> The 'canonical' way to obtain the required result would >> be to modify the input file's header to reflect the real >> (and wrong) samplerate before it is resampled, then resample >> it to the exact required rate. > > Probably easier to fix the desination file. yep. sndfile-convert -override-sample-rate=44100 in.wav out.wav did the trick for me. best, jörn _______________________________________________ Linux-audio-dev mailing list [email protected] http://lists.linuxaudio.org/listinfo/linux-audio-dev
