Files
ggwave/examples/ggwave-wasm/main.cpp
2020-11-29 15:50:05 +00:00

24 lines
437 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");
if (argv[1]) {
GGWave_setDefaultCaptureDeviceName(argv[1]);
}
emscripten_set_main_loop(update, 60, 1);
return 0;
}