From 0c8f073917f39499b770c57886df1db6e3358b15 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Fri, 14 Aug 2026 21:40:16 +1200 Subject: Change color to red and add vosk to the build system --- .gitignore | 4 ++++ AndroidManifest.xml | 2 +- Makefile | 16 +++++++++++++--- README.md | 2 ++ jni/Android.mk | 7 ++++++- jni/Application.mk | 2 +- jni/main.c | 7 +++++-- 7 files changed, 32 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 9837d7a..aba59d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ libs/ obj/ apk/ +vosk/ +tmp/ +vosk-android* +*.aar moku-assistant.apk moku-assistant.apk.idsig debug.keystore diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d6724c5..c9e7cbb 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,7 +1,7 @@ - + #include #include #include @@ -32,6 +33,7 @@ struct engine { int window_initialized; int running; uint64_t last_update; + int color; }; struct engine *engine_new(struct android_app* app) { @@ -46,6 +48,7 @@ struct engine *engine_new(struct android_app* app) { engine->window_initialized = 0; engine->app = app; engine->running = 0; + engine->color = COLOR_RED; engine->last_update = (uint64_t)0; return engine; @@ -78,7 +81,7 @@ static void engine_draw_frame(struct engine *engine) { for (y = 0; y < buffer.height; y++) { for (x = 0; x < buffer.width; x++) { pixel_idx = y * buffer.stride + x; - ((uint32_t*)(buffer.bits))[pixel_idx] = (uint32_t)COLOR_GREEN; + ((uint32_t*)(buffer.bits))[pixel_idx] = (uint32_t)engine->color; } } @@ -108,7 +111,7 @@ static void engine_update(struct engine *engine) { static void engine_real_tick(struct engine *engine) { if (!engine->running) return; - LOGI("tick"); + // LOGI("tick"); engine_schedule_tick(engine); engine_update(engine); engine_draw_frame(engine); -- cgit v1.2.3