Reading audio output is stopped when audio visualizers are not in used.
4 using System.Runtime.Serialization;
5 using System.Threading;
6 using System.Threading.Tasks;
11 [AttributeObject(Id = "Action.Task.Delay", Name = "Delay", Description = "Delay the execution of the next task.")]
12 public class ActionDelay : Action
15 [AttributeObjectProperty
17 Id = "Task.Delay.Milliseconds",
19 Description = "Specifies the delay in milliseconds.",
25 public int Milliseconds { get; set; }
33 public ActionDelay(int aMillisecondsTimeout)
35 Milliseconds = aMillisecondsTimeout;
38 public override string BriefBase()
40 return AttributeName + " for " + Milliseconds/1000.0 + " seconds";
44 protected override async Task DoExecute()
46 await Task.Delay(Milliseconds);