From 272cecaeca707476debddbcbbe446e09053d2cf9 Mon Sep 17 00:00:00 2001 From: Zhong Yang Date: Wed, 22 Jul 2020 15:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9C=89=E7=9A=84=E9=9F=B3?= =?UTF-8?q?=E9=A2=91=E6=96=87=E4=BB=B6=E6=92=AD=E6=94=BE=E5=88=B0=E5=BF=AB?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E6=9E=9C=E5=8D=A1=E4=BD=8F=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20#78?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MusicPlayer2/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MusicPlayer2/Player.cpp b/MusicPlayer2/Player.cpp index c34e5fec..84975672 100644 --- a/MusicPlayer2/Player.cpp +++ b/MusicPlayer2/Player.cpp @@ -622,7 +622,7 @@ bool CPlayer::SongIsOver() const bool song_is_over; static int last_pos; if ((m_playing == 2 && m_current_position.toInt() == last_pos && m_current_position.toInt() != 0 //如果正在播放且当前播放的位置没有发生变化且当前播放位置不为0, - && m_current_position.toInt() > m_song_length.toInt() - 2000) //且播放进度到了最后2秒 + /*&& m_current_position.toInt() > m_song_length.toInt() - 2000*/) //且播放进度到了最后2秒 || m_error_code == BASS_ERROR_ENDED) //或者出现BASS_ERROR_ENDED错误,则判断当前歌曲播放完了 //有时候会出现识别的歌曲长度超过实际歌曲长度的问题,这样会导致歌曲播放进度超过实际歌曲结尾时会出现BASS_ERROR_ENDED错误, //检测到这个错误时直接判断歌曲已经播放完了。