mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 08:25:07 +00:00

LibDSP can greatly benefit from this nice FFT implementation, so let's move it into the fitting library :^) Note that this now requires linking SoundPlayer against LibDSP. That's not an issue (LibDSP is rather small currently anyways), as we can probably make great use of it in the future anyways.
16 lines
272 B
C++
16 lines
272 B
C++
/*
|
|
* Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Complex.h>
|
|
#include <AK/Vector.h>
|
|
|
|
namespace LibDSP {
|
|
|
|
void fft(Vector<Complex<double>>& sample_data, bool invert = false);
|
|
|
|
}
|