File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -756,7 +756,7 @@ export class PlayerCore {
756756 // if there is a sound currently being played
757757 if ( currentSound !== null && currentSound . state === PlayerSound . SOUND_STATE_PLAYING ) {
758758
759- const nextSound = this . _getSoundFromQueue ( { whichSound : PlayerCore . PLAY_SOUND_NEXT , updateIndex : true } ) ;
759+ const nextSound = this . _getSoundFromQueue ( { whichSound : PlayerCore . PLAY_SOUND_NEXT , updateIndex : false } ) ;
760760
761761 if ( currentSound . onEnded !== null ) {
762762
@@ -831,6 +831,8 @@ export class PlayerCore {
831831 // AND the currentIndex is null
832832 // we set it to first sound in queue
833833 soundIndex = 0
834+
835+ // else we use currentIndex (so the current sound)
834836 if ( this . _currentIndex !== null ) {
835837 soundIndex = this . _currentIndex
836838 }
You can’t perform that action at this time.
0 commit comments