Author Topic: Unwanted MacOS Microphone Permission Dialog  (Read 733 times)

brianshmrian

  • Posts: 8
Unwanted MacOS Microphone Permission Dialog
« on: 28 Oct '23 - 00:45 »
Is there a way to tell Bass that my program doesn't need sound input (aka microphone access)?  I'm finding that initializing Bass causes MacOS to bring up a dialog saying  ""MyApp" would like to access the microphone."

Thanks!

Ian @ un4seen

  • Administrator
  • Posts: 26083
Re: Unwanted MacOS Microphone Permission Dialog
« Reply #1 on: 30 Oct '23 - 12:24 »
That should only happen when you call BASS_RecordStart. Is it happening even if you don't? If so, please identify what call it is being triggered by.

brianshmrian

  • Posts: 8
Re: Unwanted MacOS Microphone Permission Dialog
« Reply #2 on: 30 Oct '23 - 18:02 »
Hi, Ian.  Thanks for your reply!

I can get the permission dialog to pop up just by making this call:
Code: [Select]
BASS_Init(-1, 44100, 0, 0, NULL);

If I step in the debugger, the dialog pops up right when I step over the BASS_Init call.  It happens without me making any other earlier calls to BASS_SetConfig.  The permission dialog also pops up if I build the BASS xcode demos and run the synth example. 

This is on macOS Ventura 13.0.1 with BASS version 2.4.17.

Edit: I upgraded to macOS Ventura 13.6.1 and still get the permission request when running my program or the synth demo.  The dialog does only come up once per new build, though.  Maybe it's something weird about my current macOS options?  As you can tell from my old 13.0.1 version number, I don't really mess with my mac that much except for making new macOS or iOS builds of my programs.
« Last Edit: 30 Oct '23 - 19:27 by brianshmrian »

Ian @ un4seen

  • Administrator
  • Posts: 26083
Re: Unwanted MacOS Microphone Permission Dialog
« Reply #3 on: 31 Oct '23 - 14:40 »
Strange, I'm not seeing that here. Do you also see the dialog when using other audio software for the first time? Please try running the DEVLIST example from the BASS package and post the text output from that (and check whether the dialog appears).

I don't think it'll make a difference, but you could also try this latest BASS build anyway:

   www.un4seen.com/stuff/bass-osx.zip

brianshmrian

  • Posts: 8
Re: Unwanted MacOS Microphone Permission Dialog
« Reply #4 on: 1 Nov '23 - 00:44 »
I downloaded VLC, and it asked for microphone permission as well!  So I guess it's just something weird with my Mac.

Here's the devlist output:
Code: [Select]
Output Devices
2023-10-31 17:32:15.479044-0700 devlist[6686:195448] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x60000020c160> F8BB1C28-BAE8-11D6-9C31-00039315CD46
1: Default
driver: (null)
type: Speakers
flags: enabled default (2000003)
2: Built-in Output
driver: AppleHDAEngineOutput:1F,3,0,1,1:0
type: Speakers
flags: enabled default (2000003)

Input Devices
0: Default
driver: (null)
type: Microphone
flags: enabled default (5000003)
1: Built-in Microphone
driver: AppleHDAEngineInput:1F,3,0,1,0:1
type: Microphone
flags: enabled default (5000003)
input 0: Internal Microphone
Program ended with exit code: 0

Ian @ un4seen

  • Administrator
  • Posts: 26083
Re: Unwanted MacOS Microphone Permission Dialog
« Reply #5 on: 1 Nov '23 - 13:14 »
Weird indeed. Is it a fresh(ish) macOS installation? I'm not sure what/how but perhaps you have something installed that's triggering it? If it isn't too much hassle, you could try a fresh macOS installation (perhaps to a USB drive if you don't want to lose your existing installation) and see if you still have the problem then.

brianshmrian

  • Posts: 8
Re: Unwanted MacOS Microphone Permission Dialog
« Reply #6 on: 2 Nov '23 - 18:13 »
I'll see if I can figure it out, but it's a low priority for me since I realize it's only my own machine's weirdness.  The only real annoyance is that every time I run a new build, I have to go through the microphone permission dialog :-)

But I'll report back here if I ever figure it out...

Thanks again for the tip on trying other programs!