You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IAudioClient.cs 960 B

1234567891011121314151617181920212223242526
  1. using System.IO;
  2. using System.Threading.Tasks;
  3. namespace Discord.Audio
  4. {
  5. public interface IAudioClient
  6. {
  7. ConnectionState State { get; }
  8. Channel Channel { get; }
  9. Server Server { get; }
  10. Stream OutputStream { get; }
  11. Task Join(Channel channel);
  12. Task Disconnect();
  13. /// <summary> Sends a PCM frame to the voice server. Will block until space frees up in the outgoing buffer. </summary>
  14. /// <param name="data">PCM frame to send. This must be a single or collection of uncompressed 48Kz monochannel 20ms PCM frames. </param>
  15. /// <param name="offset">Offset . </param>
  16. /// <param name="count">Number of bytes in this frame. </param>
  17. void Send(byte[] data, int offset, int count);
  18. /// <summary> Clears the PCM buffer. </summary>
  19. void Clear();
  20. /// <summary> Blocks until the voice output buffer is empty. </summary>
  21. void Wait();
  22. }
  23. }