Exemplo n.º 1
0
 /// <summary>
 /// Adds an OpenAL input to the runner for reading.
 /// </summary>
 /// <param name="input"></param>
 public static void Add(OpenALInput input)
 {
     lock (_inputs)
     {
         _inputs.Add(input);
     }
     EnsureThreadRunning();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Removes an OpenAL input from the runner.
 /// </summary>
 /// <param name="input"></param>
 public static void Remove(OpenALInput input, bool allowThreadShutdown = true)
 {
     lock (_inputs)
     {
         _inputs.Remove(input);
         if (allowThreadShutdown && _inputs.Count == 0)
         {
             StopThread();
         }
     }
 }