mirror of
https://github.com/ggerganov/wave-share.git
synced 2026-03-23 08:00:59 +08:00
Init the code only after the user presses a button
This commit is contained in:
@@ -5,5 +5,7 @@ echo "static const char * BUILD_TIMESTAMP=\"`date`\";" > build_timestamp.h
|
||||
em++ -Wall -Wextra -O3 -std=c++11 -s USE_SDL=2 ./main.cpp -o wave.js -I ./fftw-3.3.3/api ./lib/libfftw3f.a \
|
||||
-s EXPORTED_FUNCTIONS='["_getText", "_getSampleRate", "_setText", "_getAverageRxTime_ms", "_setParameters",
|
||||
"_getFramesLeftToRecord", "_getFramesToRecord",
|
||||
"_getFramesLeftToAnalyze", "_getFramesToAnalyze", "_main"]' \
|
||||
"_getFramesLeftToAnalyze", "_getFramesToAnalyze",
|
||||
"_hasDeviceOutput", "_hasDeviceCapture", "_doInit",
|
||||
"_main"]' \
|
||||
-s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap", "writeArrayToMemory"]'
|
||||
|
||||
Reference in New Issue
Block a user