Skip to content

Android doesn't register any Microphone objects #6444

Description

@dmanning23

I'm trying to use the Microphone functionality that was recently added to MonoGame 3.7, but I'm having problems on the Android platform.

Here's the helper library I wrote for it:
https://github.com/dmanning23/MicBuddy

More importantly, here's the example project that shows this issue:
https://github.com/dmanning23/MicBuddySample

This project works as expected in iOS. The app starts, and the default microphone is detected by MonoGame and registered with the system. On Android however it never registers any microphones. (The first thing I double-checked was that I had the RECORD_AUDIO permission, but that doesn't seem to be the problem.) The Microphone.Default parameter is always null, and Microphone.All list is always empty.

Is there any extra initialization that needs to occur on Android that I am unaware of?

What version of MonoGame does the bug occur on:

  • MonoGame 3.7

What operating system are you using:

  • Android 7+

What MonoGame platform are you using:

  • Android
  • iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken, crashes, regresses, or behaves unexpectedly.platform: androidAndroidscope: audioAudio playback, content, codecs, or audio backend behavior.scope: nativeNative runtime, interop, bindings, or unmanaged code related work.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions