Some minor fixes for the native client
parent
2d26112884
commit
5a3e1f26ea
|
@ -853,14 +853,11 @@ export class ConnectionHandler {
|
||||||
|
|
||||||
async startVoiceRecorder(notifyError: boolean) : Promise<{ state: "success" | "no-input" } | { state: "error", message: string }> {
|
async startVoiceRecorder(notifyError: boolean) : Promise<{ state: "success" | "no-input" } | { state: "error", message: string }> {
|
||||||
const input = this.getVoiceRecorder()?.input;
|
const input = this.getVoiceRecorder()?.input;
|
||||||
console.error("Input: %o", input);
|
|
||||||
if(!input) {
|
if(!input) {
|
||||||
console.error("NO - INPUT");
|
|
||||||
return { state: "no-input" };
|
return { state: "no-input" };
|
||||||
}
|
}
|
||||||
|
|
||||||
console.error("XXX");
|
console.error("Input statuis: %o", InputState[input.currentState()], FilterMode[input.getFilterMode()]);
|
||||||
console.log("Input statuis: %o", input.currentState());
|
|
||||||
if(input.currentState() === InputState.PAUSED && this.connection_state === ConnectionState.CONNECTED) {
|
if(input.currentState() === InputState.PAUSED && this.connection_state === ConnectionState.CONNECTED) {
|
||||||
try {
|
try {
|
||||||
const result = await input.start();
|
const result = await input.start();
|
||||||
|
|
|
@ -245,7 +245,7 @@ export class RecorderProfile {
|
||||||
log.warn(LogCategory.VOICE, tr("Failed to unmount input consumer for profile (%o)"), error);
|
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;
|
this.callback_input_initialized = undefined;
|
||||||
|
|
Loading…
Reference in New Issue