From 6d92e83b57d182001d7e6ab7d8e123765e228d79 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Fri, 4 Aug 2023 07:30:57 +0200 Subject: [PATCH] improved android code + fixes in bw_ppm and bw_rand --- TODO | 1 + examples/common/android/MainActivity-fx.java | 2 +- examples/common/android/MainActivity-synth.java | 2 +- examples/common/android/index.html | 4 +++- include/bw_ppm.h | 4 +++- include/bw_rand.h | 3 ++- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 5a32962..6630355 100644 --- a/TODO +++ b/TODO @@ -101,6 +101,7 @@ build system: * single header(s) * cross compile (rpi etc.) * consider tuist (https://tuist.io/), bazel (https://bazel.build/), pants (https://www.pantsbuild.org/), buck (https://buck2.build/), please (https://please.build/index.html) for mobile apps +* homogenize android and ios common code (e.g., same index) -- diff --git a/examples/common/android/MainActivity-fx.java b/examples/common/android/MainActivity-fx.java index 1332b94..aee6649 100644 --- a/examples/common/android/MainActivity-fx.java +++ b/examples/common/android/MainActivity-fx.java @@ -71,7 +71,7 @@ public class MainActivity extends Activity { @JavascriptInterface public void setParameter(int i, float v) { - nativeSetParameter(i, v * 0.001f); + nativeSetParameter(i, v); } } diff --git a/examples/common/android/MainActivity-synth.java b/examples/common/android/MainActivity-synth.java index a61d8c0..55ce160 100644 --- a/examples/common/android/MainActivity-synth.java +++ b/examples/common/android/MainActivity-synth.java @@ -154,7 +154,7 @@ public class MainActivity extends Activity { @JavascriptInterface public void setParameter(int i, float v) { - nativeSetParameter(i, v * 0.001f); + nativeSetParameter(i, v); } } diff --git a/examples/common/android/index.html b/examples/common/android/index.html index 082268e..b482d63 100644 --- a/examples/common/android/index.html +++ b/examples/common/android/index.html @@ -22,6 +22,7 @@ --> +