mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-07 01:11:22 +08:00
22 lines
408 B
C++
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;
|
|
}
|