diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-08-05 16:03:11 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-08-05 16:03:11 -0700 |
| commit | e0e52953570caea66096cda08dc814f34735f7af (patch) | |
| tree | 75ee87cb8685fe72ef944970b5fc2dbfbfecaf6c /src/dft.c | |
| parent | e939fa891b6403fcdaba7f545b2bf7932aa7f9ba (diff) | |
Fixed byte/element inconsistencies
Diffstat (limited to 'src/dft.c')
| -rw-r--r-- | src/dft.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -149,7 +149,7 @@ stft_data_t short_time_fourier_transform(smrt_arena_t *arena, u64 window_size, u assert(F64_EQ(round(log2(window_size)), log2(window_size), 1e-9) && "STFT input window_size must be a power of 2"); - sample_count = ALIGN_UP_POW2(sample_count, window_size); + sample_count = ALIGN_UP_POW2(sample_count * sizeof(f64), STFT_SAMPLE_ALIGN_BYTES(window_size)) / sizeof(f64); u64 segment_count = ((sample_count - window_size) / hop_size) + 1; |