Player.cpp
/*
 * According to the documentation OnPlayFinished is called twice.
 * So we use onPlayFinishedTrigger to make sure we only play the
 * next track on the second time onPlayFinished is called.
 */
According to the documentation OnPlayFinished is called twice.
So we use onPlayFinishedTrigger to make sure we only play the
next track on the second time onPlayFinished is called.
According to the documentation OnPlayFinished is called twice . So we use onPlayFinishedTrigger to make sure we only play the next track on the second time onPlayFinished is called .
static void Player::onPlayFinished() {
  if ( !onPlayFinishedTrigger ) {
    onPlayFinishedTrigger = true;
    return;
  }
  playNextTrack(false);
  onPlayFinishedTrigger = false;
}
static void Player :: onPlayFinished ( ) { if ( ! onPlayFinishedTrigger ) { onPlayFinishedTrigger = true ; return ; } playNextTrack ( false ) ; onPlayFinishedTrigger = false ; }
According to the documentation OnPlayFinished is called twice.
According to the documentation OnPlayFinished is called twice .