Constructor AudioFormat
- Namespace
- DSharpPlus.VoiceNext
- Assembly
- DSharpPlus.VoiceNext.dll
AudioFormat(int, int, VoiceApplication)
Creates a new audio format for use with Opus encoder.
public AudioFormat(int sampleRate = 48000, int channelCount = 2, VoiceApplication voiceApplication = VoiceApplication.Music)
Parameters
sampleRate
intAudio sampling rate in Hz.
channelCount
intNumber of audio channels in the data.
voiceApplication
VoiceApplicationEncoder preset to use.