Commit 89c3be3
committed
fix(audio): zero-fill FFT buffer tail after partial frame read
When ReadNextFrame returns fewer samples than the buffer size, the tail
contains stale samples from the previous iteration, contaminating
frequency analysis. Add clear() call after the partial-frame copy to
zero-fill the tail, matching the pattern already used in Pass 2
(rendering).
Signed-off-by: Martin Wimpress <code@wimpress.io>1 parent 68154fc commit 89c3be3
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
| |||
0 commit comments