mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-03-06 23:05:53 +08:00
Spectrogram - WASM port (#26)
* wip in progress * wip * done * fix small window behavior
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user