mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-19 22:24:18 +00:00
Reinstate Audio Level updating and sliders
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user