Removed various voice debug messages

This commit is contained in:
WolverinDEV 2018-06-19 20:34:26 +02:00
parent 7fc922552a
commit 8ca6fe7e01
3 changed files with 2 additions and 4 deletions

View file

@ -142,13 +142,13 @@ class CodecWrapper extends BasicCodec {
}
private sendWorkerMessage(message: any, transfare?: any[]) {
//console.log("Send worker: %o", message);
message["timestamp"] = Date.now();
this._worker.postMessage(JSON.stringify(message), transfare);
}
private onWorkerMessage(message: any) {
console.log("Worker message stock time: %d", Date.now() - message["timestamp"]);
if(Date.now() - message["timestamp"] > 5)
console.warn("Worker message stock time: %d", Date.now() - message["timestamp"]);
if(!message["token"]) {
console.error("Invalid worker token!");
return;

View file

@ -146,7 +146,6 @@ class VoiceConnection {
private sendNextVoicePacket() {
let buffer = this.voice_send_queue.pop_front();
if(!buffer) return;
console.log("Sending packet!");
this.sendVoicePacket(buffer.data, buffer.codec);
}

View file

@ -19,7 +19,6 @@ let codecInstance: CodecWorker;
onmessage = function(e) {
let data = JSON.parse(e.data);
console.log(prefix + "Pipeline timestamp: %d");
let res: any = {};
res.token = data.token;