Plasmo Voice

Plasmo Voice

2M Downloads

Mac issue - I get "MultiMc would like access to the microphone" all the time

spiderkitten opened this issue ยท 3 comments

commented

Hi, I am using Plasmo on a minecraft server I play on that has it enabled, via MultiMC on a Mac (Mojave 10.14.6). It works great, I can hear people and they can hear me, except that:

  • if I have it set to "push to talk" every time I press the key to talk my Mac pops up a dialogue box that says "MultiMc would like access to the microphone" which of course, I click OK, and then I press the Push To Talk Button, and it pops up again.

So I switched to Voice Detection.

  • However, with Voice Detection, it still pops up the message every time I unmute using the unmute key. I am fortunate in that my microphone has a mute button I can use instead, but it's still not my preferred option. I would rather use a key on my keyboard.

In my privacy settings for microphone access, I have MultiMC set as having permission to access the microphone, so I don't know why it has to keep asking me.

Additionally, there is sometimes a delay in the dialogue box popping up. Not by a lot, just enough for me to think its not going to and then it does.

dialogue box

privacy settings

Is there a way to fix this?

Minecraft version: 1.17.1
Fabric version: 0.11.6 (fabric api 0.37)
Mod version: 1.0.9
macOS version: Mojave 10.14.6

commented

Hi, I am using Plasmo on a minecraft server I play on that has it enabled, via MultiMC on a Mac (Mojave 10.14.6). It works great, I can hear people and they can hear me, except that:

  • if I have it set to "push to talk" every time I press the key to talk my Mac pops up a dialogue box that says "MultiMc would like access to the microphone" which of course, I click OK, and then I press the Push To Talk Button, and it pops up again.

So I switched to Voice Detection.

  • However, with Voice Detection, it still pops up the message every time I unmute using the unmute key. I am fortunate in that my microphone has a mute button I can use instead, but it's still not my preferred option. I would rather use a key on my keyboard.

In my privacy settings for microphone access, I have MultiMC set as having permission to access the microphone, so I don't know why it has to keep asking me.

Additionally, there is sometimes a delay in the dialogue box popping up. Not by a lot, just enough for me to think its not going to and then it does.

dialogue box privacy settings

Is there a way to fix this?

Minecraft version: 1.17.1
Fabric version: 0.11.6 (fabric api 0.37)
Mod version: 1.0.9
macOS version: Mojave 10.14.6

This appears to be a problem with how mute is handled. The correct way is to use a control, but the fabric code appears to just disconnect the mic all-together. This problem can most likely be fixed by using controls instead of disconnecting the mic. I'll open a PR to change how mute is handled, which should fix your issue so it'll only ask for mic when the mic service starts, opposed from spamming the dialogue.

As for how to make it stop asking, that's most likely an issue with Mac.

EDIT: I've been unsuccessful with properly building the jar.. so to anyone who works on this project, this issue can be resolved by using mic#getControl(BooleanControl.Type.MUTE); and using the value to mute/unmute the mic.. which should make it so mac users won't get spammed asking permission.

commented

Just an update on this: I am wondering if this was actually a MultiMC issue. I was experiencing an unrelated issue (multimc would freeze my computer when I launched the app) and reinstalling MultiMC didn't help until I installed the development version instead. And since doing that, this Microphone access issue has gone away. It doesn't ask me anymore.

commented

It's likely that this is not the issue with the mod, and I don't think we can do anything about it.