Ejemplo n.º 1
0
 public PlaybackPool(CodecSettings codecSettings, IPriorityManager priority, IVolumeProvider volume)
 {
     _codecSettings = codecSettings;
     _priority      = priority;
     _volume        = volume;
     _pool          = new Pool <VoicePlayback>(6, CreatePlayback);
 }
Ejemplo n.º 2
0
        public PlaybackPool([NotNull] IPriorityManager priority, [NotNull] IVolumeProvider volume)
        {
            if (priority == null)
            {
                throw new ArgumentNullException("priority");
            }
            if (volume == null)
            {
                throw new ArgumentNullException("volume");
            }

            _priority = priority;
            _volume   = volume;
            _pool     = new Pool <VoicePlayback>(10, CreatePlayback);
        }
Ejemplo n.º 3
0
 public PlaybackPool(IPriorityManager priority, IVolumeProvider volume)
 {
     _priority = priority;
     _volume   = volume;
     _pool     = new Pool <VoicePlayback>(6, CreatePlayback);
 }