Exemplo n.º 1
0
        void m_audioEngine_CriticalError(object sender, SharpDX.XAudio2.ErrorEventArgs e)
        {
            const uint LEAP_E_INVALID_CALL = 0x88880001;

            if (((uint)e.ErrorCode.Code) == LEAP_E_INVALID_CALL)
            {
                MyLog.Default.WriteLine("Audio device removed");
            }
            else
            {
                MyLog.Default.WriteLine("Audio error: " + e.ErrorCode);
            }
            m_deviceLost = true;
        }
Exemplo n.º 2
0
 private void XAudio2OnCriticalError(object sender, ErrorEventArgs errorEventArgs)
 {
     Logger.Error("XAudio2 critical error {0} ", errorEventArgs.ErrorCode);
 }