You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/flowgraph/resampler/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -29,11 +29,11 @@ Higher quality levels will sound better but consume more CPU because they have m
29
29
30
30
Note that the number of output frames generated for a given number of input frames can vary.
31
31
32
-
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:
32
+
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:
33
33
34
-
940 * 48000 * 44100 = 1023.1292517...
34
+
960 * 48000 * 44100 = 1044.897959...
35
35
36
-
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.
36
+
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.
37
37
38
38
You can either use a fixed number of input frames or a fixed number of output frames. The other frame count will vary.
0 commit comments