/// <summary>Your console will emit a song (CcApi And Ps3mApi Only).</summary>
 public void Buzzer(BuzzerMode flag)
 {
     if (SetAPI.API == SelectAPI.ControlConsole)
     {
         if (flag == BuzzerMode.Single)
         {
             Common.CcApi.RingBuzzer(CCAPI.BuzzerMode.Single);
         }
         else if (flag == BuzzerMode.Double)
         {
             Common.CcApi.RingBuzzer(CCAPI.BuzzerMode.Double);
         }
         else if (flag == BuzzerMode.Triple)
         {
             Common.CcApi.RingBuzzer(CCAPI.BuzzerMode.Continuous);
         }
     }
     else if (SetAPI.API == SelectAPI.PS3Manager)
     {
         if (flag == BuzzerMode.Single)
         {
             Common.Ps3mApi.RingBuzzer(PS3ManagerAPI.PS3MAPI.PS3_CMD.BuzzerMode.Single);
         }
         else if (flag == BuzzerMode.Double)
         {
             Common.Ps3mApi.RingBuzzer(PS3ManagerAPI.PS3MAPI.PS3_CMD.BuzzerMode.Double);
         }
         else if (flag == BuzzerMode.Triple)
         {
             Common.Ps3mApi.RingBuzzer(PS3ManagerAPI.PS3MAPI.PS3_CMD.BuzzerMode.Triple);
         }
     }
 }
Exemple #2
0
        /// <summary>
        /// Will trigger the buzzer function on the PS3
        /// </summary>
        /// <param name="mode"></param>
        public void RingBuzzer(BuzzerMode mode)
        {
            WebRequest  bzzer    = WebRequest.Create("http://" + ip + "/buzzer.ps3mapi?mode=" + mode);
            WebResponse bzzerrsp = bzzer.GetResponse();

            using (Stream dataStream = bzzerrsp.GetResponseStream())
            {
                StreamReader reader = new StreamReader(dataStream);
                reader.ReadToEnd();
            }
            bzzerrsp.Close();
        }
        public bool RingBuzzerPS3(BuzzerMode flag)
        {
            //if (!isUsingTMAPI())
            //{
            //    int val = (int)Enum.Parse(typeof(PluginInterface.BuzzerMode), flag.ToString());
            //    Form1.PS3.CCAPI.RingBuzzer((PS3Lib.CCAPI.BuzzerMode)val);
            //}
            //else
            return(false);

            //return true;
        }
Exemple #4
0
 /// <summary>Your console will emit a song.</summary>
 public int RingBuzzer(BuzzerMode flag)
 {
     return(ringBuzzer((int)flag));
 }
Exemple #5
0
 public int Buzzer(BuzzerMode Mode)
 {
     return(ringBuzzer((int)Mode));
 }
 /// <summary>
 /// Triggers the buzzer function to create a beep sound. Use the BuzzerMode structure for the pre-defined modes.
 /// </summary>
 /// <param name="ip"></param>
 /// <param name="mode"></param>
 public static void RingBuzzer(string ip, BuzzerMode mode)
 {
     HandleRequest(ip, "buzzer.ps3mapi?mode=" + mode);
 }