Some minor fixes for the native client

canary
WolverinDEV 2020-09-25 17:15:24 +02:00
parent 2d26112884
commit 5a3e1f26ea
2 changed files with 2 additions and 5 deletions

View File

@ -853,14 +853,11 @@ export class ConnectionHandler {
async startVoiceRecorder(notifyError: boolean) : Promise<{ state: "success" | "no-input" } | { state: "error", message: string }> {
const input = this.getVoiceRecorder()?.input;
console.error("Input: %o", input);
if(!input) {
console.error("NO - INPUT");
return { state: "no-input" };
}
console.error("XXX");
console.log("Input statuis: %o", input.currentState());
console.error("Input statuis: %o", InputState[input.currentState()], FilterMode[input.getFilterMode()]);
if(input.currentState() === InputState.PAUSED && this.connection_state === ConnectionState.CONNECTED) {
try {
const result = await input.start();

View File

@ -245,7 +245,7 @@ export class RecorderProfile {
log.warn(LogCategory.VOICE, tr("Failed to unmount input consumer for profile (%o)"), error);
}
this.input.setFilterMode(FilterMode.Block);
/* this.input.setFilterMode(FilterMode.Block); */
}
this.callback_input_initialized = undefined;