Removed some debug code
This commit is contained in:
parent
400b4f4293
commit
07c1f6ff15
4 changed files with 7 additions and 8 deletions
|
@ -244,7 +244,7 @@ export class ConnectionHandler {
|
|||
this.update_voice_status();
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
|
@ -1061,10 +1061,10 @@ export class ConnectionHandler {
|
|||
isSubscribeToAllChannels() : boolean { return this.client_status.channel_subscribe_all; }
|
||||
|
||||
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)
|
||||
return;
|
||||
|
||||
|
|
|
@ -310,7 +310,7 @@ export function initialize_audio_microphone_controller(events: Registry<Micropho
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
loader.register_task(Stage.LOADED, {
|
||||
name: "test",
|
||||
function: async () => {
|
||||
|
@ -342,3 +342,4 @@ loader.register_task(Stage.LOADED, {
|
|||
},
|
||||
priority: -2
|
||||
})
|
||||
*/
|
|
@ -126,9 +126,7 @@ export class RecorderProfile {
|
|||
}
|
||||
|
||||
aplayer.on_ready(async () => {
|
||||
console.error("AWAITING DEVICE LIST");
|
||||
await getRecorderBackend().getDeviceList().awaitInitialized();
|
||||
console.error("AWAITING DEVICE LIST DONE");
|
||||
|
||||
await this.initializeInput();
|
||||
await this.reinitializeFilter();
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
NodeInputConsumer
|
||||
} from "tc-shared/voice/RecorderBase";
|
||||
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 {JAbstractFilter, JStateFilter, JThresholdFilter} from "./RecorderFilter";
|
||||
import {Filter, FilterType, FilterTypeClass} from "tc-shared/voice/Filter";
|
||||
|
@ -173,7 +173,7 @@ class JavascriptInput implements AbstractInput {
|
|||
chain += FilterType[f.type] + " <- ";
|
||||
}
|
||||
chain += "input";
|
||||
console.error("Filter chain: %s", chain);
|
||||
logDebug(LogCategory.AUDIO, tr("Input filter chain: %s"), chain);
|
||||
|
||||
this.switchSourceNode(currentSource);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue