windows debug build

This commit is contained in:
AlexandreRouma
2024-06-08 08:38:33 +02:00
parent bb9024fadd
commit 936c99dc40
10 changed files with 62 additions and 17 deletions

View File

@ -52,4 +52,15 @@ namespace ImGui {
bufferMtx.unlock();
}
void SymbolDiagram::setCount(int count) {
std::lock_guard<std::mutex> lck(bufferMtx);
delete[] buffer;
buffer = new float[count];
sampleCount = count;
memset(buffer, 0, sampleCount * sizeof(float));
}
int SymbolDiagram::getCount() {
return sampleCount;
}
}

View File

@ -18,6 +18,10 @@ namespace ImGui {
void releaseBuffer();
void setCount(int count);
int getCount();
std::vector<float> lines;
private: