mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-03-16 23:45:59 +08:00
wip : remove TxMode
always use variable length
This commit is contained in:
@@ -33,8 +33,6 @@ int main(int argc, char** argv) {
|
||||
|
||||
auto ggWave = GGWave_instance();
|
||||
|
||||
ggWave->setTxMode(GGWave::TxMode::VariableLength);
|
||||
|
||||
printf("Selecting Tx protocol %d\n", txProtocol);
|
||||
|
||||
std::mutex mutex;
|
||||
|
||||
@@ -73,12 +73,6 @@ extern "C" {
|
||||
int doInit() {
|
||||
return GGWave_init(-1, -1);
|
||||
}
|
||||
|
||||
EMSCRIPTEN_KEEPALIVE
|
||||
int setTxMode(int txMode) {
|
||||
g_ggWave->setTxMode((GGWave::TxMode)(txMode));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void GGWave_setDefaultCaptureDeviceName(std::string name) {
|
||||
|
||||
@@ -69,8 +69,6 @@ int main(int argc, char** argv) {
|
||||
|
||||
auto ggWave = GGWave_instance();
|
||||
|
||||
ggWave->setTxMode(GGWave::TxMode::VariableLength);
|
||||
|
||||
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0) {
|
||||
fprintf(stderr, "Error: %s\n", SDL_GetError());
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user