mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(VoiceReceiver): delete opus encoder from map in stoppedSpeaking (#3499)
This commit is contained in:
@@ -112,6 +112,7 @@ class VoiceReceiver extends EventEmitter {
|
||||
}
|
||||
if (opusEncoder) {
|
||||
opusEncoder.destroy();
|
||||
this.opusEncoders.delete(user.id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +133,7 @@ class VoiceReceiver extends EventEmitter {
|
||||
|
||||
/**
|
||||
* Creates a readable stream for a user that provides PCM data while the user is speaking. When the user
|
||||
* stops speaking, the stream is destroyed. The stream is 32-bit signed stereo PCM at 48KHz.
|
||||
* stops speaking, the stream is destroyed. The stream is 16-bit signed stereo PCM at 48KHz.
|
||||
* @param {UserResolvable} user The user to create the stream for
|
||||
* @returns {ReadableStream}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user