ggwave-wasm : minor fix

This commit is contained in:
Georgi Gerganov
2020-11-29 15:50:05 +00:00
parent 0bbb11fffb
commit 5c478fce12

View File

@@ -13,7 +13,9 @@ int main(int , char** argv) {
printf("Build time: %s\n", BUILD_TIMESTAMP);
printf("Press the Init button to start\n");
GGWave_setDefaultCaptureDeviceName(argv[1]);
if (argv[1]) {
GGWave_setDefaultCaptureDeviceName(argv[1]);
}
emscripten_set_main_loop(update, 60, 1);