Skip to content

Fix audio stutter when loading new album in random mode

jedmund requested to merge jedmund/multi-disc-scanning into main

Summary

  • When crossfading between albums, clearing the old audio element's src fired an onerror event that cascaded into playNext()/playTrack(), restarting playback on the new element
  • This caused the "plays first second, cuts out, replays from beginning" behavior
  • Added a fadingOut guard so error and ended handlers ignore events from the element being faded out

Merge request reports

Loading