Fixed bugs + added option to show bookmarks on FFT

This commit is contained in:
Ryzerth
2021-07-04 16:41:46 +02:00
parent 4dc0df74cf
commit 6db8251e46
4 changed files with 139 additions and 22 deletions

View File

@ -35,6 +35,9 @@ namespace ImGui {
double snapInterval = 5000;
int reference = REF_CENTER;
bool leftClamped;
bool rightClamped;
ImVec2 rectMin;
ImVec2 rectMax;
ImVec2 lineMin;
@ -154,6 +157,22 @@ namespace ImGui {
Event<FFTRedrawArgs> onFFTRedraw;
struct InputHandlerArgs {
ImVec2 fftRectMin;
ImVec2 fftRectMax;
ImVec2 freqScaleRectMin;
ImVec2 freqScaleRectMax;
ImVec2 waterfallRectMin;
ImVec2 waterfallRectMax;
double lowFreq;
double highFreq;
double freqToPixelRatio;
double pixelToFreqRatio;
};
bool inputHandled = false;
Event<InputHandlerArgs> onInputProcess;
enum {
REF_LOWER,
REF_CENTER,