diff --git a/preload.js b/preload.js index 5cadd6b..98505d6 100644 --- a/preload.js +++ b/preload.js @@ -9,6 +9,11 @@ contextBridge.exposeInMainWorld('electronAPI', { readDirectory: (dirPath) => ipcRenderer.invoke('read-directory', dirPath), copyImage: (sourcePath, destPath) => ipcRenderer.invoke('copy-image', sourcePath, destPath), + // Audio file operations + selectAudio: () => ipcRenderer.invoke('select-audio'), + readAudioDirectory: (dirPath) => ipcRenderer.invoke('read-audio-directory', dirPath), + copyAudio: (sourcePath, destPath) => ipcRenderer.invoke('copy-audio', sourcePath, destPath), + // File system utilities getAppPath: () => ipcRenderer.invoke('get-app-path'), pathJoin: (...paths) => ipcRenderer.invoke('path-join', ...paths),