environments/review-docs-renov-b1i8ag/deployments/15025
wvffle 2022-10-28 16:55:57 +00:00 zatwierdzone przez Georg Krause
rodzic ba10e03143
commit ab8699783d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2970D504B2183D22
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -55,7 +55,7 @@ export const useTracks = createGlobalState(() => {
const createSoundPromise = async () => {
const sources = getTrackSources(track)
const { playTrack, currentIndex } = useQueue()
const { playNext } = useQueue()
const SoundImplementation = soundImplementation.value
const sound = new SoundImplementation(sources)
@ -63,9 +63,7 @@ export const useTracks = createGlobalState(() => {
console.log('TRACK ENDED, PLAYING NEXT')
// NOTE: We push it to the end of the job queue
setTimeout(() => {
playTrack(currentIndex.value + 1)
}, 0)
setTimeout(() => playNext(), 0)
})
soundCache.set(track.id, sound)
soundPromises.delete(track.id)