Search Unity

Microphone devices : empty or same names. How to avoid?

Discussion in 'Scripting' started by Darkgaze, May 29, 2017.

  1. Darkgaze

    Darkgaze

    Joined:
    Apr 3, 2017
    Posts:
    395
    I use this:

    https://docs.unity3d.com/ScriptReference/Microphone-devices.html

    Sadly it returns a list of empty names. The microphones input signals are coming from usb devices.
    I tried with an external audio device and it returns some names, and they are different.

    But it detects 6 devices, which is ok. But most of the names are empty.


    What's the problem with this?
    You can't start a microphone using Mycrophone.start(XXXX....) if you don't have a name. If you do that, it will take the "last" microphone in that list with that name... or empty name.

    I can't believe this works like this in FMod. A very serious design flaw. How come use the device name as the input parameter instead of the unique ID of the device??


    Any other way to do this?
     
  2. Nukode

    Nukode

    Joined:
    May 24, 2016
    Posts:
    9
    i have the same problem :(
    i tried this :
    - Run Unity in admin mode
    - Run my app outside of editor (build)
    - Run my app outside of editor in admin mode

    but none worked.