Example #1
0
    public static bool CDAudio_Init()
    {
        if (cls.state == cactive_t.ca_dedicated)
        {
            return(false);
        }

        if (HasParam("-nocdaudio"))
        {
            return(false);
        }

        _Controller.Init();

        if (_Controller.IsInitialized)
        {
            Cmd_AddCommand("cd", CD_f);
            Con_Printf("CD Audio Initialized\n");
        }

        return(_Controller.IsInitialized);
    }
Example #2
0
        /// <summary>
        /// CDAudio_Init
        /// </summary>
        public static bool Init()
        {
            if (Client.Cls.state == ClientActivityState.Dedicated)
            {
                return(false);
            }

            if (Common.HasParam("-nocdaudio"))
            {
                return(false);
            }

            _Controller.Init();

            if (_Controller.IsInitialized)
            {
                Cmd.Add("cd", CD_f);
                Con.Print("CD Audio Initialized\n");
            }

            return(_Controller.IsInitialized);
        }
Example #3
0
        /// <summary>
        /// CDAudio_Init
        /// </summary>
        public static bool Init()
        {
            if (client.cls.state == cactive_t.ca_dedicated)
            {
                return(false);
            }

            if (common.HasParam("-nocdaudio"))
            {
                return(false);
            }

            _Controller.Init();

            if (_Controller.IsInitialized)
            {
                cmd.Add("cd", CD_f);
                Con.Print("CD Audio (Fallback) Initialized\n");
            }

            return(_Controller.IsInitialized);
        }