public static T Into <T>(this IAudioPassiveProducer producer, Action <T>?init = null) where T : IAudioActiveConsumer, new() { var reader = new T(); init?.Invoke(reader); return(producer.Into(reader)); }
public void Remove(IAudioPassiveProducer removeProducer) { if (producerList.Contains(removeProducer) && removeProducer != this) { lock (listLock) { producerList.Remove(removeProducer); changed = true; } } }
public void Add(IAudioPassiveProducer addProducer) { if (!producerList.Contains(addProducer) && addProducer != this) { lock (listLock) { producerList.Add(addProducer); changed = true; } } }
public static T Into <T>(this IAudioPassiveProducer producer, T reader) where T : IAudioActiveConsumer { reader.InStream = producer; return(reader); }
public StreamAudioPlayerSource(IAudioPassiveProducer stream) : this() { InStream = stream; }