Reference · Digital audio hardware

Digital audio filters, clocking and sample-rate conversion

Explain anti-alias filters, reconstruction, oversampling, jitter and why resampling is not equivalent to higher original resolution.

The analogue input and output stages and the digital processing stages are distinct.
The analogue input and output stages and the digital processing stages are distinct.

Filtering at different stages

An anti-alias filter limits the bandwidth before sampling so that out-of-band components do not fold into the wanted signal. Reconstruction filtering suppresses images when samples are converted back to analogue. Digital filters can also be used for equalisation, crossover design and sample-rate conversion, but those operations have different purposes.

Upsampling creates additional sample positions by interpolation. It can make converter filter design easier and provide a useful intermediate rate for processing. It does not recreate arbitrary original information above the source’s bandwidth.

Sample-rate conversion and filter trade-offs

A rate conversion such as 48 kHz to 44.1 kHz involves filtering and resampling to a different time grid. Good implementations suppress frequencies that cannot be represented at the target rate. Linear-phase filters maintain relative phase in their passband but have a symmetric impulse response and delay; minimum-phase filters can concentrate ringing after an impulse at the cost of frequency-dependent phase. Neither description alone determines audibility.

Reducing bit depth is another operation. Dither can decorrelate quantisation error, while noise shaping redistributes its spectrum. Apply those intentionally when creating a lower-bit-depth deliverable, not to a source that is meant to remain bit-identical.

Clocking and practical hardware

SituationRelevant issue
Two independent ADCsClock drift between channels
Digital interfaceClock recovery or asynchronous buffering
DAC reconstructionTiming and analogue filter performance
Software rate conversionNumerical filter design and target rate

Jitter describes timing variation, not extra or missing file bits. Its significance at conversion depends on magnitude, spectrum and signal frequency. An ordinary verified digital file does not contain playback-interface timing jitter as a change in its sample sequence. An ADC can, however, turn sampling-time error into sample-value error.

Useful checks

For matrix surround, keep channel processing consistent; independent filters or delays can change the encoded phase relationships. When preserving a recording, retain native-rate samples and make separately labelled converted copies. In a playback comparison, use identical gain and source data, avoid clipping and inspect whether the player or operating system is resampling.

Sources and further reading