Reinstate Audio Level updating and sliders

This commit is contained in:
2019-04-18 15:18:19 -05:00
parent 7ce4ae4073
commit 17abd07dc9
8 changed files with 133 additions and 33 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace qController
{
@@ -26,7 +27,7 @@ namespace qController
public string displayName { get; set; }
public bool isLoaded { get; set; }
public string notes { get; set; }
public List<double> levels { get; set; }
public string getIconString()
{
switch (type)
@@ -39,6 +39,22 @@ namespace qController
}
}
}
public void UpdateLevels(string cue_id, List<double> levels)
{
for (int i = 0; i < data.Count; i++)
{
for (int j = 0; j < data[i].cues.Count; j++)
{
if (data[i].cues[j].uniqueID == cue_id)
{
Console.WriteLine("Cue found and levels updated");
data[i].cues[j].levels = levels;
}
}
}
}
public void PrintStats()
{
foreach (var cueList in data)