/// <summary> /// Get the current audio output device. /// </summary> /// <returns>The audio output device.</returns> private MLAudio.Device InternalGetOutputDevice() { try { MLResult.Code result = NativeBindings.MLAudioGetOutputDevice(out Instance.audioDevice); if (result != MLResult.Code.Ok) { MLPluginLog.ErrorFormat("MLAudio.InternalGetOutputDevice failed to get the audio output device. Reason: {0}", result); } } catch (System.DllNotFoundException) { MLPluginLog.Error(this.DllNotFoundError); throw; } return(Instance.audioDevice); }