Skip to content

Commit 80e99d3

Browse files
committed
spectrogram : disable offset for wasm build
1 parent 9ea6aed commit 80e99d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/spectrogram/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,12 @@ int main(int argc, char** argv) {
525525
ImGui::DragInt("Max", &g_binMax, 1, g_binMin + 1, g_nBins, buf);
526526
}
527527
ImGui::DragFloat("Scale", &g_scale, 1.0f, 1.0f, 1000.0f);
528+
#ifndef __EMSCRIPTEN__
528529
if (ImGui::SliderFloat("Offset", &g_sampleRateOffset, -2048, 2048)) {
529530
GGWave_deinit();
530531
GGWave_init(0, 0);
531532
}
533+
#endif
532534
if (ImGui::Button("Pause [Enter]")) {
533535
togglePause = true;
534536
}

0 commit comments

Comments
 (0)