Class OpusDecodeStream
public class OpusDecodeStream : RewritingStream, IDisposable, IAsyncDisposable
- Inheritance
-
OpusDecodeStream
- Implements
- Inherited Members
Constructors
OpusDecodeStream(Stream, PcmFormat, VoiceChannels)
public OpusDecodeStream(Stream next, PcmFormat format, VoiceChannels channels)
Parameters
next
StreamThe stream that this stream is writing to.
format
PcmFormatThe PCM format to decode to.
channels
VoiceChannelsNumber of channels to decode.
Methods
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposing
bool
Write(ReadOnlySpan<byte>)
public override void Write(ReadOnlySpan<byte> buffer)
Parameters
buffer
ReadOnlySpan<byte>
WriteAsync(ReadOnlyMemory<byte>, CancellationToken)
public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)
Parameters
buffer
ReadOnlyMemory<byte>cancellationToken
CancellationToken