Skip to content

Commit

Permalink
Add FFT buffer size of 32768
Browse files Browse the repository at this point in the history
  • Loading branch information
KungFuFurby committed Dec 16, 2024
1 parent 5015895 commit ad2fc81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Unreleased
- Added FFT buffer size of 32768

## 1.6.0 (2024-12-16)
- dependency updates
- MSRV bump but only for the tests and examples, not library users
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ harness = false
[dependencies]
float-cmp = "~0.10.0"
libm = "~0.2.7"
microfft = { version = "~0.5.1", features = ["size-16384"] }
microfft = { version = "~0.6.0", features = ["size-32768"] }
paste = "~1.0.14"

[dev-dependencies]
Expand Down
5 changes: 3 additions & 2 deletions src/fft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ impl FftImpl {
/// a power of two. Otherwise, the function panics.
#[inline]
pub(crate) fn calc(samples: &[f32]) -> Vec<Complex32> {
let mut fft_res: Vec<Complex32> =
real_fft_n!(samples, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384);
let mut fft_res: Vec<Complex32> = real_fft_n!(
samples, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768
);

// `microfft::real` documentation says: the Nyquist frequency real value
// is packed inside the imaginary part of the DC component.
Expand Down

0 comments on commit ad2fc81

Please sign in to comment.