fix sendAudio()

This commit is contained in:
vapormusic 2022-02-23 13:32:00 +07:00
parent 1b4394f9a1
commit d0904bcdd3

View file

@ -761,6 +761,10 @@ export class BrowserWindow {
`) `)
}); });
ipcMain.on('writeAudio', (event, buffer) => {
this.audioStream.write(Buffer.from(buffer));
})
//QR Code //QR Code
ipcMain.handle('showQR', async (_event, _) => { ipcMain.handle('showQR', async (_event, _) => {
let url = `http://${BrowserWindow.getIP()}:${this.remotePort}`; let url = `http://${BrowserWindow.getIP()}:${this.remotePort}`;