spectrogram : disable offset for wasm build

This commit is contained in:
Georgi Gerganov
2021-03-01 09:51:29 +02:00
parent 9ea6aed9d1
commit 80e99d361d

View File

@@ -525,10 +525,12 @@ int main(int argc, char** argv) {
ImGui::DragInt("Max", &g_binMax, 1, g_binMin + 1, g_nBins, buf);
}
ImGui::DragFloat("Scale", &g_scale, 1.0f, 1.0f, 1000.0f);
#ifndef __EMSCRIPTEN__
if (ImGui::SliderFloat("Offset", &g_sampleRateOffset, -2048, 2048)) {
GGWave_deinit();
GGWave_init(0, 0);
}
#endif
if (ImGui::Button("Pause [Enter]")) {
togglePause = true;
}