public void SetAudioConfiguration(MixCastAV.AUDIOCONFIG cfgType) { if (audAsyncDec != IntPtr.Zero) { //useful for debugging //if (cfgType == MixCastAV.AUDIOCONFIG.MICROPHONE_AND_DESKTOP) // Debug.Log("The audio mode is set to : MICROPHONE_AND_DESKTOP"); //if (cfgType == MixCastAV.AUDIOCONFIG.DESKTOP_ONLY) // Debug.Log("The audio mode is set to : DESKTOP_ONLY"); //if (cfgType == MixCastAV.AUDIOCONFIG.MICROPHONE_ONLY) // Debug.Log("The audio mode is set to : MICROPHONE_ONLY"); //if (cfgType == MixCastAV.AUDIOCONFIG.NO_AUDIO) // Debug.Log("The audio mode is set to : NO_AUDIO"); MixCastAV.setCfgAudioDecodeAsync(audAsyncDec, cfgType); _adeviceConfiguration = cfgType; // save the configuration change } //Debug.LogWarning( "Setting audio config to " + cfgType.ToString() ); }