/// <param name="manager"> Audio player manager which this player is attached to </param>
 /// <param name="outputHook"> Hook which can intercept outgoing audio frames </param>
 public AudioPlayer(DefaultAudioPlayerManager manager, AudioOutputHook outputHook)
 {
     this.manager    = manager;
     this.outputHook = outputHook;
     activeTrack     = null;
     paused          = new AtomicBoolean();
     listeners       = new IList <AudioEventListener>();
     volumeLevel     = new AtomicInteger(100);
     trackSwitchLock = new object();
 }
Beispiel #2
0
 /// <param name="playerManager"> Audio player manager </param>
 public RemoteNodeManager(DefaultAudioPlayerManager playerManager)
 {
     this.playerManager         = playerManager;
     this.httpInterfaceManager  = RemoteNodeProcessor.createHttpInterfaceManager();
     this.processors            = new List <RemoteNodeProcessor>();
     this.abandonedTrackManager = new AbandonedTrackManager();
     this.enabled          = new AtomicBoolean();
     this.@lock            = new object();
     this.activeProcessors = new List <RemoteNodeProcessor>();
 }