diff options
author | Phil Burk <philburk@mobileer.com> | 2022-12-13 07:59:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 07:59:00 -0800 |
commit | 03db05df380486643bcf02eab9b3f1350b8069ad (patch) | |
tree | 96c214ca17e2c8fddbf5a12249d2d7769001eddb | |
parent | 2ecb5ff430f5b1bd01536a138222fa8e86f00049 (diff) | |
download | oboe-03db05df380486643bcf02eab9b3f1350b8069ad.tar.gz |
fix resampler formula in README
-rw-r--r-- | src/flowgraph/resampler/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flowgraph/resampler/README.md b/src/flowgraph/resampler/README.md index ea319c76..356f06c7 100644 --- a/src/flowgraph/resampler/README.md +++ b/src/flowgraph/resampler/README.md @@ -40,7 +40,7 @@ Note that the number of output frames generated for a given number of input fram For example, suppose you are converting from 44100 Hz to 48000 Hz and using an input buffer with 960 frames. If you calculate the number of output frames you get: - 960 * 48000 * 44100 = 1044.897959... + 960.0 * 48000 / 44100 = 1044.897959... You cannot generate a fractional number of frames. So the resampler will sometimes generate 1044 frames and sometimes 1045 frames. On average it will generate 1044.897959 frames. The resampler stores the fraction internally and keeps track of when to consume or generate a frame. |