mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(VoiceReceiver): delete opus encoder from map in stoppedSpeaking (#3499)
This commit is contained in:
parent
7011c512fb
commit
91600a6946
1 changed files with 2 additions and 1 deletions
|
|
@ -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}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue