feat(dsp): SpectralProcessor sample_rate param

This commit is contained in:
2026-08-21 01:32:50 +03:00
parent 7bf5a4a80c
commit 7659eb0362
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ constexpr size_t DEFAULT_HOP = 512;
class SpectralProcessor {
public:
SpectralProcessor(size_t nfft = DEFAULT_NFFT, size_t hop = DEFAULT_HOP);
SpectralProcessor(size_t nfft = DEFAULT_NFFT, size_t hop = DEFAULT_HOP,
float sample_rate = 44100.0f);
~SpectralProcessor();
void setDetectorParams(const std::vector<DetectorBand>& bands);