mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-18 11:34:19 +02:00
rolling recording buffer
This commit is contained in:
@@ -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: [],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user