Removed some debug code

This commit is contained in:
WolverinDEV 2020-08-19 19:36:17 +02:00
parent 400b4f4293
commit 07c1f6ff15
4 changed files with 7 additions and 8 deletions

View file

@ -244,7 +244,7 @@ export class ConnectionHandler {
this.update_voice_status(); this.update_voice_status();
this.setSubscribeToAllChannels(source ? source.client_status.channel_subscribe_all : settings.global(Settings.KEY_CLIENT_STATE_SUBSCRIBE_ALL_CHANNELS)); this.setSubscribeToAllChannels(source ? source.client_status.channel_subscribe_all : settings.global(Settings.KEY_CLIENT_STATE_SUBSCRIBE_ALL_CHANNELS));
this.setAway_(source ? source.client_status.away : (settings.global(Settings.KEY_CLIENT_STATE_AWAY) ? settings.global(Settings.KEY_CLIENT_AWAY_MESSAGE) : false), false); this.doSetAway(source ? source.client_status.away : (settings.global(Settings.KEY_CLIENT_STATE_AWAY) ? settings.global(Settings.KEY_CLIENT_AWAY_MESSAGE) : false), false);
this.setQueriesShown(source ? source.client_status.queries_visible : settings.global(Settings.KEY_CLIENT_STATE_QUERY_SHOWN)); this.setQueriesShown(source ? source.client_status.queries_visible : settings.global(Settings.KEY_CLIENT_STATE_QUERY_SHOWN));
} }
@ -1061,10 +1061,10 @@ export class ConnectionHandler {
isSubscribeToAllChannels() : boolean { return this.client_status.channel_subscribe_all; } isSubscribeToAllChannels() : boolean { return this.client_status.channel_subscribe_all; }
setAway(state: boolean | string) { setAway(state: boolean | string) {
this.setAway_(state, true); this.doSetAway(state, true);
} }
private setAway_(state: boolean | string, play_sound: boolean) { private doSetAway(state: boolean | string, play_sound: boolean) {
if(this.client_status.away === state) if(this.client_status.away === state)
return; return;

View file

@ -310,7 +310,7 @@ export function initialize_audio_microphone_controller(events: Registry<Micropho
} }
} }
/*
loader.register_task(Stage.LOADED, { loader.register_task(Stage.LOADED, {
name: "test", name: "test",
function: async () => { function: async () => {
@ -342,3 +342,4 @@ loader.register_task(Stage.LOADED, {
}, },
priority: -2 priority: -2
}) })
*/

View file

@ -126,9 +126,7 @@ export class RecorderProfile {
} }
aplayer.on_ready(async () => { aplayer.on_ready(async () => {
console.error("AWAITING DEVICE LIST");
await getRecorderBackend().getDeviceList().awaitInitialized(); await getRecorderBackend().getDeviceList().awaitInitialized();
console.error("AWAITING DEVICE LIST DONE");
await this.initializeInput(); await this.initializeInput();
await this.reinitializeFilter(); await this.reinitializeFilter();

View file

@ -11,7 +11,7 @@ import {
NodeInputConsumer NodeInputConsumer
} from "tc-shared/voice/RecorderBase"; } from "tc-shared/voice/RecorderBase";
import * as log from "tc-shared/log"; import * as log from "tc-shared/log";
import {LogCategory, logWarn} from "tc-shared/log"; import {LogCategory, logDebug, logWarn} from "tc-shared/log";
import * as aplayer from "./player"; import * as aplayer from "./player";
import {JAbstractFilter, JStateFilter, JThresholdFilter} from "./RecorderFilter"; import {JAbstractFilter, JStateFilter, JThresholdFilter} from "./RecorderFilter";
import {Filter, FilterType, FilterTypeClass} from "tc-shared/voice/Filter"; import {Filter, FilterType, FilterTypeClass} from "tc-shared/voice/Filter";
@ -173,7 +173,7 @@ class JavascriptInput implements AbstractInput {
chain += FilterType[f.type] + " <- "; chain += FilterType[f.type] + " <- ";
} }
chain += "input"; chain += "input";
console.error("Filter chain: %s", chain); logDebug(LogCategory.AUDIO, tr("Input filter chain: %s"), chain);
this.switchSourceNode(currentSource); this.switchSourceNode(currentSource);
} }