Skip to content

Commit

Permalink
voice: update prism
Browse files Browse the repository at this point in the history
  • Loading branch information
amishshah committed Feb 14, 2019
1 parent 4289b18 commit 0564c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/voice/util/PlayInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 0564c5c

Please sign in to comment.