using System; using System.Threading.Tasks; namespace Discord.Audio { internal partial class AudioClient { public event Func Connected { add { _connectedEvent.Add(value); } remove { _connectedEvent.Remove(value); } } private readonly AsyncEvent> _connectedEvent = new AsyncEvent>(); public event Func Disconnected { add { _disconnectedEvent.Add(value); } remove { _disconnectedEvent.Remove(value); } } private readonly AsyncEvent> _disconnectedEvent = new AsyncEvent>(); public event Func LatencyUpdated { add { _latencyUpdatedEvent.Add(value); } remove { _latencyUpdatedEvent.Remove(value); } } private readonly AsyncEvent> _latencyUpdatedEvent = new AsyncEvent>(); public event Func UdpLatencyUpdated { add { _udpLatencyUpdatedEvent.Add(value); } remove { _udpLatencyUpdatedEvent.Remove(value); } } private readonly AsyncEvent> _udpLatencyUpdatedEvent = new AsyncEvent>(); public event Func StreamCreated { add { _streamCreatedEvent.Add(value); } remove { _streamCreatedEvent.Remove(value); } } private readonly AsyncEvent> _streamCreatedEvent = new AsyncEvent>(); public event Func StreamDestroyed { add { _streamDestroyedEvent.Add(value); } remove { _streamDestroyedEvent.Remove(value); } } private readonly AsyncEvent> _streamDestroyedEvent = new AsyncEvent>(); public event Func SpeakingUpdated { add { _speakingUpdatedEvent.Add(value); } remove { _speakingUpdatedEvent.Remove(value); } } private readonly AsyncEvent> _speakingUpdatedEvent = new AsyncEvent>(); } }