Search Unity

Audio Un-mute a Windows audio device from Unity

Discussion in 'Audio & Video' started by CptDustmite, Jul 24, 2018.

  1. CptDustmite

    CptDustmite

    Joined:
    Jun 17, 2014
    Posts:
    61
    Hi there

    I'm trying to toggle a microphone device's "mute" state to not muted, from within Unity. This is the same state that you can see by right-clicking on a Recording device and going to Properties then Levels tab.

    I have found AudioDeviceController.Muted but that is in UWP API (Universal Windows Platform) so I'm not sure if it will work for builds set to Windows Standaloen platform. As well this is from the Windows.Media.Devices namespace and I don't have a Windows dll that Unity will recognise.

    Is there a way I can set the microphone mute state from a Windows Standalone build?

    Thank you!