1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 08:25:07 +00:00
serenity/Userland/Libraries/LibDSP/FFT.h
kleines Filmröllchen a099a77e82 SoundPlayer+LibDSP: Move the FFT implementation to LibDSP
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.
2021-11-24 23:45:08 +00:00

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);
}