Spectrogram - WASM port (#26)

* wip in progress

* wip

* done

* fix small window behavior
This commit is contained in:
Georgi Gerganov
2021-02-28 17:03:55 +02:00
committed by GitHub
parent 28e06d5b08
commit 6accc90199
7 changed files with 598 additions and 23 deletions

View File

@@ -19,9 +19,9 @@ if (EMSCRIPTEN)
)
set_target_properties(${TARGET} PROPERTIES LINK_FLAGS " \
-s FORCE_FILESYSTEM=1 \
--preload-file ${CMAKE_CURRENT_SOURCE_DIR}/../assets/fonts@/ \
")
-s FORCE_FILESYSTEM=1 \
--preload-file ${CMAKE_CURRENT_SOURCE_DIR}/../assets/fonts@/ \
")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/build_timestamp-tmpl.h ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${TARGET}/build_timestamp.h @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/index-tmpl.html ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${TARGET}/index.html @ONLY)

View File

@@ -115,7 +115,6 @@
window.addEventListener('keydown', onkeydown, true);
setTimeout(checkLoop, 100);
//window.requestAnimationFrame(renderFrame);
}
function doInit() {
@@ -142,10 +141,6 @@
x.hidden = false;
}
//function renderFrame() {
// window.requestAnimationFrame(renderFrame);
//}
var Module = {
arguments: [],
preRun: [(function() {