Class AudioStream
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public abstract class AudioStream : Stream, IDisposable
Properties​
CanRead​
View Source​
Declaration
public override bool CanRead { get; }
CanSeek​
View Source​
Declaration
public override bool CanSeek { get; }
CanWrite​
View Source​
Declaration
public override bool CanWrite { get; }
Length​
View Source​
Declaration
public override long Length { get; }
Position​
View Source​
Declaration
public override long Position { get; set; }
Methods​
WriteHeader(UInt16, UInt32, Boolean)​
View Source​
Declaration
public virtual void WriteHeader(ushort seq, uint timestamp, bool missed)
Parameters​
Type | Name |
---|---|
System.UInt16 | seq |
System.UInt32 | timestamp |
System.Boolean | missed |
Write(Byte[], Int32, Int32)​
View Source​
Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters​
Type | Name |
---|---|
System.Byte[] | buffer |
System.Int32 | offset |
System.Int32 | count |
Flush()​
View Source​
Declaration
public override void Flush()
Clear()​
View Source​
Declaration
public void Clear()
ClearAsync(CancellationToken)​
View Source​
Declaration
public virtual Task ClearAsync(CancellationToken cancellationToken)
Returns​
System.Threading.Tasks.Task
Parameters​
Type | Name |
---|---|
System.Threading.CancellationToken | cancellationToken |
Read(Byte[], Int32, Int32)​
View Source​
Declaration
public override int Read(byte[] buffer, int offset, int count)
Returns​
System.Int32
Parameters​
Type | Name |
---|---|
System.Byte[] | buffer |
System.Int32 | offset |
System.Int32 | count |
SetLength(Int64)​
View Source​
Declaration
public override void SetLength(long value)
Parameters​
Type | Name |
---|---|
System.Int64 | value |
Seek(Int64, SeekOrigin)​
View Source​
Declaration
public override long Seek(long offset, SeekOrigin origin)
Returns​
System.Int64
Parameters​
Type | Name |
---|---|
System.Int64 | offset |
System.IO.SeekOrigin | origin |
Implements​
System.IDisposable