Class VoiceTransmitSink
- Namespace
- DisCatSharp.Voice.Entities
- Assembly
- DisCatSharp.Voice.dll
Sink used to transmit audio data via VoiceConnection.
public sealed class VoiceTransmitSink : IDisposable
- Inheritance
-
VoiceTransmitSink
- Implements
- Inherited Members
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()
Releases resources used by this transmit sink.
- FlushAsync(CancellationToken)
Flushes the rest of the PCM data in this buffer to Voice 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.