Files
ggwave/examples/ggwave-wasm/main.cpp
2020-11-29 17:45:20 +02:00

22 lines
408 B
C++

#include "ggwave/ggwave.h"
#include "ggwave-common-sdl2.h"
#include "build_timestamp.h"
#include "emscripten/emscripten.h"
void update() {
GGWave_mainLoop();
}
int main(int , char** argv) {
printf("Build time: %s\n", BUILD_TIMESTAMP);
printf("Press the Init button to start\n");
GGWave_setDefaultCaptureDeviceName(argv[1]);
emscripten_set_main_loop(update, 60, 1);
return 0;
}