Re: [LAD] precision resampling to correct clock differences - no luck with libsamplerate and zita-resampler...

From: Erik de Castro Lopo <mle+la@email-addr-hidden-nerd.com>
Date: Sun May 23 2010 - 12:20:06 EEST

fons@email-addr-hidden 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.

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.

Erik

-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sun May 23 16:15:01 2010

This archive was generated by hypermail 2.1.8 : Sun May 23 2010 - 16:15:01 EEST