refactor(desktop): replace the native voice engine with a standalone hardware encoder (#1677)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-16 19:24:31 +02:00
1 parent 98c40c6979
commit ccdd85b099
893 files changed
+620 -371790

No files matched your search

@@ -19,7 +19,6 @@ import type {
import {ipcMain} from 'electron';
import {getTccStatus} from './MacTcc';
import {isValidStartOptions, normalizeScreenCaptureDimension} from './NativeScreenCaptureValidation';
import {createNativeVoiceEngineScreenFrameSinkHandle} from './NativeVoiceEngine';
const logger = createChildLogger('NativeScreenCapture');
const requireModule = createRequire(import.meta.url);
@@ -822,10 +821,6 @@ async function startNativeScreenCapture(
if (activeSessions.has(captureId)) {
throw new Error('Native screen capture id is already active');
}
const frameSinkHandle = createNativeVoiceEngineScreenFrameSinkHandle(captureId);
if (!frameSinkHandle) {
throw new Error('Native screen capture requires a native frame sink handle, but none is active');
}
const capture = new loadResult.addon.ScreenCapture({
sourceId: options.sourceId,
sourceKind: options.sourceKind,
@@ -839,7 +834,6 @@ async function startNativeScreenCapture(
showCursorClicks: options.showCursorClicks === true,
captureRect: options.captureRect,
nativeFrameSinkRequired: true,
frameSinkHandle,
});
const session: ActiveNativeScreenSession = {
captureId,