Audio PCM fix

This commit is contained in:
srtk 2026-02-09 22:04:58 +05:30
parent ad37ce8296
commit b922c0be35

16
src/renderer/src/env.d.ts vendored Normal file
View file

@ -0,0 +1,16 @@
/// <reference types="vite/client" />
interface Window {
electron: {
ipcRenderer: {
send: (channel: string, ...args: any[]) => void;
on: (channel: string, listener: (event: any, ...args: any[]) => void) => () => void;
invoke: (channel: string, ...args: any[]) => Promise<any>;
removeAllListeners: (channel: string) => void;
};
};
api: {
onAudioFragment: (callback: (payload: any) => void) => () => void;
onVideoChunk: (callback: (payload: any) => void) => () => void;
};
}