fix: songs playing at the same time

This commit is contained in:
wiliwow 2024-12-14 20:49:50 +01:00
parent a847e850bc
commit 6f0c9f9469

View file

@ -6,10 +6,11 @@
let getFile = async () => {
const audio = await window.electron.ipcRenderer.invoke('getAudioFile')
if (audio) {
audioFile = new Audio(`data:audio/mpeg;base64,${audio}`) // Assurez-vous que le type MIME est correct
} else {
window.electron.ipcRenderer.invoke("error", "This is not a playable audio file !")
window.electron.ipcRenderer.invoke('error', 'This is not a playable audio file !')
}
}