Class OutputStream
Wraps an IAudioClient, sending voice data on write.
Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class OutputStream : AudioOutStream, IDisposable
Methods​
WriteHeader(UInt16, UInt32, Boolean)​
View Source​
Declaration
public override void WriteHeader(ushort seq, uint timestamp, bool missed)
Parameters​
Type | Name |
---|---|
System.UInt16 | seq |
System.UInt32 | timestamp |
System.Boolean | missed |
WriteAsync(Byte[], Int32, Int32, CancellationToken)​
View Source​
Declaration
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancelToken)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name |
---|---|
System.Byte[] | buffer |
System.Int32 | offset |
System.Int32 | count |
System.Threading.CancellationToken | cancelToken |
Implements​
System.IDisposable