public void Poll() { var json = @"{""output"":""none""}"; var response = HxlPlus.HttpPost(GetUrl, json); ParseMatrix(response, HxlPlus.SetAudioOutF); }
public void SwitchInputToOutput(int input, int output) { if (IOsAreValid(input, output)) { string json = string.Format(@"{{""switch"":{{""input"":{0},""output"":{1}}}}}", input - 1, output - 1); HxlPlus.HttpPost(SetUrl, json); } }
public void TestInit() { ErrorMessage.Clear(); TestHttpClient.Clear(); hxl = Test.HxlPlus; api = hxl.AllAudioSettings[3]; hxl.SelectedAudioSettings = 4; }
public void TestInit() { ErrorMessage.Clear(); TestHttpClient.Clear(); hxl = Test.HxlPlus; hxl.IsHxl88 = 1; api = hxl.VideoMatrix; }
internal void Initialize() { AddEmptyDelegatesToSplusOutputs(); Band115 = new EqSetting(this, "band0", (v) => HxlPlus.SetBand115F(v), (v) => HxlPlus.SetBand115Text(v)); Band330 = new EqSetting(this, "band1", (v) => HxlPlus.SetBand330F(v), (v) => HxlPlus.SetBand330Text(v)); Band990 = new EqSetting(this, "band2", (v) => HxlPlus.SetBand990F(v), (v) => HxlPlus.SetBand990Text(v)); Band3000 = new EqSetting(this, "band3", (v) => HxlPlus.SetBand3000F(v), (v) => HxlPlus.SetBand3000Text(v)); Band9900 = new EqSetting(this, "band4", (v) => HxlPlus.SetBand9900F(v), (v) => HxlPlus.SetBand9900Text(v)); Treble = new EqSetting(this, "treble", (v) => HxlPlus.SetTrebleF(v), (v) => HxlPlus.SetTrebleText(v)); Bass = new EqSetting(this, "basstone", (v) => HxlPlus.SetBassF(v), (v) => HxlPlus.SetBassText(v)); }
public void Poll() { var postContents = string.Format(@"{{""output"":{0}}}", Output - 1); var response = HxlPlus.HttpPost(GetUrl, postContents); try { json = JObject.Parse(response); json = json["audioInfo"] as JObject; FillFromJsonObject(); } catch (Exception ex) { ErrorMessage.Error("HxlPlus.AudioSettings.Poll: Error handling Poll() response: {0}", ex.Message); } }
public void Poll() { var response = HxlPlus.HttpGet(GetUrl); ParseMatrix(response, HxlPlus.SetVideoOutF); }
public AudioSettings(HxlPlus hxlPlus) : this() { HxlPlus = hxlPlus; }