# Missing knobs on Android devices

**URL:** <https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573>\
**Category:** Web Audio Modules\
**Created:** [18 February 2022 16:42 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573 "2022-02-18T16:42:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![olawistedt](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olawistedt/32/232_2.png) [@olawistedt](https://iplug2.discourse.group/u/olawistedt)\
**Post date:** [18 February 2022 16:42 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/1 "2022-02-18T16:42:59Z")

</div>

![Skärmbild 2022-02-18 173537](https://global.discourse-cdn.com/free1/uploads/iplug2/original/1X/e1e020b0270f066a1297dccff560342c0f6a30c1.png)

Hi! A friend of mine reported that my knobs doesn’t show up in Android. It is the graphics that don’t work. He can control the instrument as if the knobs where there. You can see where the knobs should have been by reading the text, for example cut off.

---

<div class="post-metadata">

**Author:** ![olawistedt](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olawistedt/32/232_2.png) [@olawistedt](https://iplug2.discourse.group/u/olawistedt)\
**Post date:** [18 February 2022 17:02 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/2 "2022-02-18T17:02:35Z")

</div>

My friend uses Chrome on Android.

---

<div class="post-metadata">

**Author:** ![AlexHarker](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@AlexHarker](https://iplug2.discourse.group/u/AlexHarker)\
**Post date:** [19 February 2022 09:55 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/3 "2022-02-19T09:55:00Z")

</div>

Whats the URL? I can test on android here.

---

<div class="post-metadata">

**Author:** ![olawistedt](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olawistedt/32/232_2.png) [@olawistedt](https://iplug2.discourse.group/u/olawistedt)\
**Post date:** [19 February 2022 11:42 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/4 "2022-02-19T11:42:23Z")

</div>

It’s here! [BassMatrix WAM](https://olawistedt.github.io/BassMatrix/)

---

<div class="post-metadata">

**Author:** ![AlexHarker](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@AlexHarker](https://iplug2.discourse.group/u/AlexHarker)\
**Post date:** [19 February 2022 11:59 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/5 "2022-02-19T11:59:02Z")

</div>

Thanks - yes I get the same result (the tempo knob shows on android, but not the others which show on desktop).

Can you file an issue on GitHub? Can you also make it clear which graphic backend you are on (NanoVG or Canvas) - I’d be interested to know if you build with the other graphics backend if the issue goes away.

---

<div class="post-metadata">

**Author:** ![olawistedt](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olawistedt/32/232_2.png) [@olawistedt](https://iplug2.discourse.group/u/olawistedt)\
**Post date:** [19 February 2022 15:10 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/6 "2022-02-19T15:10:58Z")

</div>

Off cource. I will try to report it as an issue.

My \*-web.mk file includes this:

```auto
WEB_CFLAGS += -DIGRAPHICS_NANOVG -DIGRAPHICS_GLES2
WAM_LDFLAGS += -O3 -s EXPORT_NAME="'AudioWorkletGlobalScope.WAM.BassMatrix'" -s ASSERTIONS=0
WEB_LDFLAGS += -O0 -s ASSERTIONS=0
WEB_LDFLAGS += $(NANOVG_LDFLAGS)

```

So I guess I use NanoVG.

How do I do to change to Canvas?

---

<div class="post-metadata">

**Author:** ![AlexHarker](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@AlexHarker](https://iplug2.discourse.group/u/AlexHarker)\
**Post date:** [19 February 2022 15:43 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/7 "2022-02-19T15:43:54Z")

</div>

Change

> [@olawistedt](#):
>
> `WEB_CFLAGS += -DIGRAPHICS_NANOVG -DIGRAPHICS_GLES2`

To

WEB\_CFLAGS += -DIGRAPHICS\_CANVAS

You might also need -DIGRAPHICS\_CPU - I’m not sure about that one - I haven’t built a WAM in a while @olilarkin - can you remind us?

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [19 February 2022 15:47 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/8 "2022-02-19T15:47:44Z")

</div>

you could try

```auto
WEB_CFLAGS += -DIGRAPHICS_CANVAS
WAM_LDFLAGS += -O3 -s EXPORT_NAME="'AudioWorkletGlobalScope.WAM.BassMatrix'" -s ASSERTIONS=0
WEB_LDFLAGS += -O3 -s ASSERTIONS=0
#WEB_LDFLAGS += $(NANOVG_LDFLAGS)

```

But what i expect is happening is that the textures for some of your bitmaps are too tall for OpenGLES on android

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [19 February 2022 15:49 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/9 "2022-02-19T15:49:07Z")

</div>

gl\_max\_texture\_size is probably lower on these android devices

---

<div class="post-metadata">

**Author:** ![olawistedt](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olawistedt/32/232_2.png) [@olawistedt](https://iplug2.discourse.group/u/olawistedt)\
**Post date:** [19 February 2022 16:25 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/10 "2022-02-19T16:25:48Z")

</div>

Now I have changed to Canvas if you want to try again.

---

<div class="post-metadata">

**Author:** ![olawistedt](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olawistedt/32/232_2.png) [@olawistedt](https://iplug2.discourse.group/u/olawistedt)\
**Post date:** [19 February 2022 16:31 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/11 "2022-02-19T16:31:46Z")

</div>

> [@olilarkin](#):
>
> gl\_max\_texture\_size

The knobs that are invisible is 100x100 pixels and 127 animations.

---

<div class="post-metadata">

**Author:** ![AlexHarker](https://avatars.discourse-cdn.com/v4/letter/a/9de053/32.png) [@AlexHarker](https://iplug2.discourse.group/u/AlexHarker)\
**Post date:** [3 March 2022 10:14 UTC](https://iplug2.discourse.group/t/missing-knobs-on-android-devices/573/12 "2022-03-03T10:14:42Z")

</div>

Apologies - just seen this - Canvas works fine!

For the knobs as outlined you have 12700 pixels as one of your dimensions. It seems highly likely that android considers this to be bigger than supported. I guess there is a way to confirm on the device what gl\_max\_texture\_size is, but I wouldn’t know exactly how to do that, and it seems pretty definite this will be the case (values on stack overflow of what you might expect to be allowed are far lower than this).
