really really really messy implementation of prism

This commit is contained in:
Amish Shah
2016-12-28 17:04:18 +00:00
parent 8d966932a9
commit be32bbc3a4
9 changed files with 145 additions and 160 deletions

View File

@@ -5,6 +5,7 @@ const AudioPlayer = require('./player/AudioPlayer');
const VoiceReceiver = require('./receiver/VoiceReceiver');
const EventEmitter = require('events').EventEmitter;
const fs = require('fs');
const Prism = require('prism-media');
/**
* Represents a connection to a voice channel in Discord.
@@ -26,6 +27,11 @@ class VoiceConnection extends EventEmitter {
*/
this.voiceManager = pendingConnection.voiceManager;
/**
* The audio transcoder for this connection
*/
this.prism = new Prism();
/**
* The voice channel this connection is currently serving
* @type {VoiceChannel}