mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
* Added opus stream support, added volume interface * Remove setImmediate * Fix weird syntax error * Most useless commit ever You're welcome, @PgBiel * Fix potential memory leak with OpusScript Emscripten has the tendency to not free resources even when the Opus engine instance has been garbage collected. Thanks to @abalabahaha for pointing this out. * Typo * VoiceReceiver.destroy: destroy opus encoder
20 lines
218 B
JavaScript
20 lines
218 B
JavaScript
class BaseOpus {
|
|
constructor(player) {
|
|
this.player = player;
|
|
}
|
|
|
|
encode(buffer) {
|
|
return buffer;
|
|
}
|
|
|
|
decode(buffer) {
|
|
return buffer;
|
|
}
|
|
|
|
destroy() {
|
|
return;
|
|
}
|
|
}
|
|
|
|
module.exports = BaseOpus;
|