Audio PCM fix
This commit is contained in:
parent
ad37ce8296
commit
b922c0be35
1 changed files with 16 additions and 0 deletions
16
src/renderer/src/env.d.ts
vendored
Normal file
16
src/renderer/src/env.d.ts
vendored
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue