Start voice receive rewrite

This commit is contained in:
Amish Shah
2018-01-19 17:45:37 +00:00
parent 580bda46ea
commit 6058ea4888
3 changed files with 61 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
const EventEmitter = require('events');
class VoiceReceiver extends EventEmitter {
constructor(connection) {
super();
this.connection = connection;
this.packets = new PacketHandler(this);
this.connection.sockets.udp.socket.on('message', buffer => this.packets.push(buffer));
}
createStream(user, pcm=false) {
}
}
module.exports = VoiceReceiver;