示例#1
0
    public void Shutdown()
    {
        if (_Form != null)
        {
            _Form.Dispose();
            _Form = null;
        }

        if (!_IsInitialized)
        {
            return;
        }

        Stop();

        if (Mci.SendCommand(_DeviceID, Mci.MCI_CLOSE, Mci.MCI_WAIT, IntPtr.Zero) != 0)
        {
            game_engine.Con_DPrintf("CDAudio_Shutdown: MCI_CLOSE failed\n");
        }
    }