CloudAudioEngineEventHandler.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. namespace Agora.Rtc
  2. {
  3. //public delegate void OnTokenWillExpireHandler();
  4. //public delegate void OnConnectionStateChangeHandler(SAE_CONNECTION_STATE_TYPE state, SAE_CONNECTION_CHANGED_REASON_TYPE reason);
  5. //public delegate void OnTeammateLeftHandler(uint uid);
  6. //public delegate void OnTeammateJoinedHandler(uint uid);
  7. //public class CloudSpatialAudioEventHandler : ICloudSpatialAudioEventHandler
  8. //{
  9. // public event OnTokenWillExpireHandler EventOnTokenWillExpire;
  10. // public event OnConnectionStateChangeHandler EventOnConnectionStateChange;
  11. // public event OnTeammateLeftHandler EventOnTeammateLeft;
  12. // public event OnTeammateJoinedHandler EventOnTeammateJoined;
  13. // private static CloudSpatialAudioEventHandler eventInstance = null;
  14. // public static CloudSpatialAudioEventHandler GetInstance()
  15. // {
  16. // return eventInstance ?? (eventInstance = new CloudSpatialAudioEventHandler());
  17. // }
  18. // public override void OnTokenWillExpire()
  19. // {
  20. // if (EventOnTokenWillExpire == null) return;
  21. // EventOnTokenWillExpire.Invoke();
  22. // }
  23. // public override void OnConnectionStateChange(SAE_CONNECTION_STATE_TYPE state, SAE_CONNECTION_CHANGED_REASON_TYPE reason)
  24. // {
  25. // if (EventOnConnectionStateChange == null) return;
  26. // EventOnConnectionStateChange.Invoke(state, reason);
  27. // }
  28. // public override void OnTeammateLeft(uint uid)
  29. // {
  30. // if (EventOnTeammateLeft == null) return;
  31. // EventOnTeammateLeft.Invoke(uid);
  32. // }
  33. // public override void OnTeammateJoined(uint uid)
  34. // {
  35. // if (EventOnTeammateJoined == null) return;
  36. // EventOnTeammateJoined.Invoke(uid);
  37. // }
  38. //}
  39. }