From 80e99d361d803570b13d21b2986b48964f7b5b35 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 1 Mar 2021 09:51:29 +0200 Subject: [PATCH] spectrogram : disable offset for wasm build --- examples/spectrogram/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/spectrogram/main.cpp b/examples/spectrogram/main.cpp index c9cc8cb..ac51386 100644 --- a/examples/spectrogram/main.cpp +++ b/examples/spectrogram/main.cpp @@ -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; }