# Replace linear resampler with fft based one \(\#39098\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/28cc39ad566007e6a7630cd0986c022a0bab09e0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 28cc39ad566007e6a7630cd0986c022a0bab09e0

Requested commit: 28cc39ad566007e6a7630cd0986c022a0bab09e0

Commit: 28cc39ad566007e6a7630cd0986c022a0bab09e0

Tree: ed0fde91fd925c84c51fa4955953ddff608d3f8b

Author: David Kleingeld

Committer: GitHub

## Message

```
Replace linear resampler with fft based one (#39098)

Replaces the use of Rodio's basic linear resampler with an fft based
resampler from the rubato crate. As we are down-sampling to the minimal
(transparent) sample rate for human speech (16kHz) any down-sampling
artifact will be noticeable.

This also refactors the rodio_ext module into sub-models as it was
getting quite long.

Release Notes:

- N/A
```

## Parents

- [0da3f9ffda561a8bf553c43c96162274d9cc5238](https://git.cafe/gitcafe/zed/commit/0da3f9ffda561a8bf553c43c96162274d9cc5238?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/28cc39ad566007e6a7630cd0986c022a0bab09e0?format=markdown)
