コード例 #1
0
        /// <summary>
        /// Shutdown sound engine
        /// </summary>
        private void Deinit()
        {
            ThrowExceptionIfKrilloudIsNotInitialized();

            StopAll();

            Log("Deinitializing Krilloud...");

            m_engine.Deinit();
            m_engine    = null;
            Initialized = false;

            Log("Krilloud deinitialized!");
        }
コード例 #2
0
        /// <summary>
        /// Initialize sound engine
        /// </summary>
        private void Init()
        {
            if (Initialized)
            {
                LogError("KrilloudEngine is initialized!");
                return;
            }

            Log("Initializing Krilloud...");

            m_engine = new Krilloud(KLUtils.KRILLOUD_PROJECT_PATH);
            m_engine.Init();

            if (KLSettings.Instance.krilloudInDebugMode)
            {
                Log("Enabled debug mode for Krilloud");
                m_engine.SetDebugStatus(KLSettings.Instance.krilloudInDebugMode);
            }

            Initialized = true;

            Log("Krilloud initialized!");
        }