xiph / opus-tools

A set of tools to encode, inspect, and decode audio in the Opus format.
https://opus-codec.org/
Other
212 stars 78 forks source link

[question] How does downsampling happen in decoding? #77

Closed vadimkantorov closed 7 months ago

vadimkantorov commented 1 year ago

I noticed in https://github.com/xiph/opus-tools/blob/master/src/opusdec.c#L1157 that speex resampler is used.

Do I understand correctly that the opus always decodes to 48khz and then speex resampler is used (for both SILK and CELT encoded audio) if needed to downsample to some target sample rate?

Thanks!

vadimkantorov commented 7 months ago

Seems so!