Expose audio header more often
This commit is contained in:
@@ -11,7 +11,10 @@ namespace Discord.Audio
|
||||
public override bool CanSeek => false;
|
||||
public override bool CanWrite => false;
|
||||
|
||||
public virtual void WriteHeader(ushort seq, uint timestamp, bool missed) { }
|
||||
public virtual void WriteHeader(ushort seq, uint timestamp, bool missed)
|
||||
{
|
||||
throw new InvalidOperationException("This stream does not accept headers");
|
||||
}
|
||||
public override void Write(byte[] buffer, int offset, int count)
|
||||
{
|
||||
WriteAsync(buffer, offset, count, CancellationToken.None).GetAwaiter().GetResult();
|
||||
|
||||
Reference in New Issue
Block a user