[linux-audio-user] resampling question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 7 Oct 2003 23:51:07 +0300 (EEST)
Tommi Sakari Uimonen <tuimonen@xxxxxxxxx> wrote:

> Hi. If I want to resample from 96khz to 48khz, what would give the best
> result: use libsamplerate, or just drop off odd (or even) samples?
> 
> I guess the libsamplerate and any of its interpolations would cause some
> digital garbage anyway, 

Sample rate conversion using libsamplerate's SRC_SINC_* converters gives a 
signal to noise ratio of 96dB or better. Yes there is some digital garbage
but its probably less than the noise picked when an instrument is recorded
with a microphone.

> or are they intellectual enough to detect that the
> rate is halved and just perform a drop off?

On most normal signals, dropping every second sample will sound considerably
worse than what libsamplerate does. I suggest that you read up on sampling 
and aliasing for an explanation of why.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  nospam@xxxxxxxxxxxxx (Yes it's valid)
+-----------------------------------------------------------+
"OS X is great that way.  I put a copy of OS X on my coffee table,
and it hasn't been hacked yet. Yes, I am using it as a server. I
serve several meals on it every week." -- Anthony Minkoff


[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux