We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dbf1cf commit f5f5edcCopy full SHA for f5f5edc
src/howler.core.js
@@ -726,12 +726,13 @@
726
}
727
};
728
729
- var isRunning = (Howler.state !== 'suspended');
+ var isRunning = (Howler.state === 'running');
730
if (self._state === 'loaded' && isRunning) {
731
playWebAudio();
732
} else {
733
// Wait for the audio to load and then begin playback.
734
- self.once(isRunning ? 'load' : 'resume', playWebAudio, isRunning ? sound._id : null);
+ var event = !isRunning && self._state === 'loaded' ? 'resume' : 'load';
735
+ self.once(event, playWebAudio, isRunning ? sound._id : null);
736
737
// Cancel the end timer.
738
self._clearTimer(sound._id);
0 commit comments