mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-21 06:59:17 +00:00
More Cue updating stuff
This commit is contained in:
@@ -26,7 +26,6 @@ namespace qController
|
|||||||
qClient.qParser.CueInfoUpdated += this.OnCueUpdateReceived;
|
qClient.qParser.CueInfoUpdated += this.OnCueUpdateReceived;
|
||||||
qClient.sendArgsUDP("/updates", 1);
|
qClient.sendArgsUDP("/updates", 1);
|
||||||
qClient.sendAndReceiveString("/cueLists");
|
qClient.sendAndReceiveString("/cueLists");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void sendCommand(string cmd){
|
public void sendCommand(string cmd){
|
||||||
@@ -48,6 +47,8 @@ namespace qController
|
|||||||
qWorkspace = args.UpdatedWorkspace;
|
qWorkspace = args.UpdatedWorkspace;
|
||||||
Console.WriteLine("Workspace updated in QController: " + qWorkspace.workspace_id);
|
Console.WriteLine("Workspace updated in QController: " + qWorkspace.workspace_id);
|
||||||
qWorkspace.PrintStats();
|
qWorkspace.PrintStats();
|
||||||
|
playbackPosition = null;
|
||||||
|
qClient.UpdateSelectedCue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnPlaybackPositionUpdated(object source, PlaybackPositionArgs args)
|
public void OnPlaybackPositionUpdated(object source, PlaybackPositionArgs args)
|
||||||
@@ -60,6 +61,10 @@ namespace qController
|
|||||||
{
|
{
|
||||||
qWorkspace.UpdateCue(args.Cue);
|
qWorkspace.UpdateCue(args.Cue);
|
||||||
Console.WriteLine("Cue updated in QController: " + args.Cue.uniqueID );
|
Console.WriteLine("Cue updated in QController: " + args.Cue.uniqueID );
|
||||||
|
if (playbackPosition == null)
|
||||||
|
{
|
||||||
|
playbackPosition = args.Cue.uniqueID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public void Kill(){
|
public void Kill(){
|
||||||
qUpdater.Kill();
|
qUpdater.Kill();
|
||||||
|
|||||||
@@ -62,10 +62,7 @@ namespace qController
|
|||||||
{
|
{
|
||||||
if (msg.Address.Contains("valuesForKeys"))
|
if (msg.Address.Contains("valuesForKeys"))
|
||||||
{
|
{
|
||||||
if (msg.Address.Contains("selected"))
|
ParseCueUpdateInfo(msg);
|
||||||
ParseSelectedCueInfo(msg);
|
|
||||||
else
|
|
||||||
ParseCueUpdateInfo(msg);
|
|
||||||
}
|
}
|
||||||
else if (msg.Address.Contains("notes"))
|
else if (msg.Address.Contains("notes"))
|
||||||
ParseNoteInfo(msg);
|
ParseNoteInfo(msg);
|
||||||
@@ -86,7 +83,6 @@ namespace qController
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ParsePositionUpdateInfo(OscMessage msg)
|
public void ParsePositionUpdateInfo(OscMessage msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user