rolling recording buffer

This commit is contained in:
Boof2015
2026-08-16 14:38:12 -04:00
parent 90cde23f4d
commit f6d9719c43
22 changed files with 1125 additions and 4 deletions
+5
View File
@@ -1,3 +1,5 @@
import type { RollingCaptureDurationSeconds } from './audioClip'
export type LoginLaunchMode = 'show' | 'tray'
export type LoginItemStatus =
@@ -39,6 +41,7 @@ export interface TrayRendererState {
captureMode: 'system' | 'device'
selectedSystemSourceId: string | null
selectedDeviceId: string | null
rollingCaptureSeconds: RollingCaptureDurationSeconds | null
systemSources: TrayAudioSourceOption[]
inputSources: TrayAudioSourceOption[]
}
@@ -47,6 +50,7 @@ export type TrayRendererCommand =
| { type: 'load-profile'; profileId: string }
| { type: 'select-system-source'; sourceId: string }
| { type: 'select-input-source'; deviceId: string | null }
| { type: 'set-rolling-capture'; durationSeconds: RollingCaptureDurationSeconds | null }
| { type: 'set-capture-running'; running: boolean }
| { type: 'open-settings' }
@@ -64,6 +68,7 @@ export const DEFAULT_TRAY_RENDERER_STATE: TrayRendererState = {
captureMode: 'system',
selectedSystemSourceId: null,
selectedDeviceId: null,
rollingCaptureSeconds: null,
systemSources: [],
inputSources: [],
}