Table of Contents

Class VoiceTransmitSink

Namespace
DSharpPlus.VoiceNext
Assembly
DSharpPlus.VoiceNext.dll

Sink used to transmit audio data via VoiceNextConnection.

public sealed class VoiceTransmitSink
Inheritance
VoiceTransmitSink

Properties

SampleDuration

Gets the PCM sample duration for this sink.

SampleLength

Gets the length of the PCM buffer for this sink. Written packets should adhere to this size, but the sink will adapt to fit.

VolumeModifier

Gets or sets the volume modifier for this sink. Changing this will alter the volume of the output. 1.0 is 100%.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FlushAsync(CancellationToken)

Flushes the rest of the PCM data in this buffer to VoiceNext packet queue.

GetInstalledFilters()

Gets the collection of installed PCM filters, in order of their execution.

InstallFilter(IVoiceFilter, int)

Installs a new PCM filter, with specified execution order.

Pause()

Pauses playback.

ResumeAsync()

Resumes playback.

UninstallFilter(IVoiceFilter)

Uninstalls an installed PCM filter.

WriteAsync(byte[], int, int, CancellationToken)

Writes PCM data to the sink. The data is prepared for transmission, and enqueued.

WriteAsync(ReadOnlyMemory<byte>, CancellationToken)

Writes PCM data to the sink. The data is prepared for transmission, and enqueued.