aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Burk <philburk@mobileer.com>2020-11-02 10:54:37 -0800
committerGitHub <noreply@github.com>2020-11-02 10:54:37 -0800
commit120b61d9b46ca8559790bce27bdd4c230b11a6cc (patch)
tree02c89980014ddf57b40f6618c1e307b42957ea65 /src
parent83e283f9a498e03dd0ad67175a21afecfa46fcc3 (diff)
downloadoboe-120b61d9b46ca8559790bce27bdd4c230b11a6cc.tar.gz
resample, changed README to 960 frames
Diffstat (limited to 'src')
-rw-r--r--src/flowgraph/resampler/README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flowgraph/resampler/README.md b/src/flowgraph/resampler/README.md
index ecf030ff..5ea97dc8 100644
--- a/src/flowgraph/resampler/README.md
+++ b/src/flowgraph/resampler/README.md
@@ -29,11 +29,11 @@ Higher quality levels will sound better but consume more CPU because they have m
Note that the number of output frames generated for a given number of input frames can vary.
-For example, suppose you are converting from 44100 Hz to 48000 Hz and using an input buffer with 940 frames. If you calculate the number of output frames you get:
+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:
- 940 * 48000 * 44100 = 1023.1292517...
+ 960 * 48000 * 44100 = 1044.897959...
-You cannot generate a fractional number of frames. So the resampler will sometimes generate 1023 frames and sometimes 1024 frames. On average it will generate 1023.1292517 frames. The resampler stores the fraction internally and keeps track of when to consume or generate a frame.
+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.
You can either use a fixed number of input frames or a fixed number of output frames. The other frame count will vary.