diff --git a/src/client/voice/util/PlayInterface.js b/src/client/voice/util/PlayInterface.js index ac66eb290..873cd81e9 100644 --- a/src/client/voice/util/PlayInterface.js +++ b/src/client/voice/util/PlayInterface.js @@ -75,10 +75,10 @@ class PlayInterface { return this.player.playOpusStream(resource, options); } else if (type === 'ogg/opus') { if (!(resource instanceof Readable)) throw new Error('VOICE_PRISM_DEMUXERS_NEED_STREAM'); - return this.player.playOpusStream(resource.pipe(new prism.OggOpusDemuxer()), options); + return this.player.playOpusStream(resource.pipe(new prism.opus.OggDemuxer()), options); } else if (type === 'webm/opus') { if (!(resource instanceof Readable)) throw new Error('VOICE_PRISM_DEMUXERS_NEED_STREAM'); - return this.player.playOpusStream(resource.pipe(new prism.WebmOpusDemuxer()), options); + return this.player.playOpusStream(resource.pipe(new prism.opus.WebmDemuxer()), options); } } throw new Error('VOICE_PLAY_INTERFACE_BAD_TYPE');