added stuff idk

This commit is contained in:
Ryzerth
2020-06-10 18:52:07 +02:00
parent 8e1c6e9da6
commit 7120e848ef
13 changed files with 300 additions and 17 deletions

View File

@@ -13,13 +13,20 @@ namespace ImGui {
void draw();
void pushFFT(std::vector<float> data, int n);
float centerFrequency;
float bandWidth;
float range;
private:
void drawWaterfall(ImGuiWindow* window, int width, int height, ImVec2 pos);
void drawFFT(ImGuiWindow* window, int width, int height, ImVec2 pos);
std::vector<std::vector<float>> fftBuffer;
bool newSamples;
std::mutex buf_mtx;
GLuint textureId;
uint8_t* pixelBuffer;
};
};