Interface IVoiceFilter
Represents a filter for PCM data. PCM data submitted through a VoiceTransmitSink will be sent through all installed instances of IVoiceFilter first.
Namespace: DSharpPlus.VoiceNext
Assembly: cs.temp.dll.dll
Syntax
public interface IVoiceFilter
Methods
Transform(Span<Int16>, AudioFormat, Int32)
Transforms the supplied PCM data using this filter.
Declaration
void Transform(Span<short> pcmData, AudioFormat pcmFormat, int duration)
Parameters
Type | Name | Description |
---|---|---|
Span<System.Int16> | pcmData | PCM data to transform. The transformation happens in-place. |
AudioFormat | pcmFormat | Format of the supplied PCM data. |
System.Int32 | duration | Millisecond duration of the supplied PCM data. |