From e3dea9c27505a20811b8608b7f5364e188de3edd Mon Sep 17 00:00:00 2001 From: theGreatWhiteShark Date: Tue, 29 Oct 2024 22:15:55 +0100 Subject: [PATCH] AudioEngine: add logs in updateSongSize indicate the change in song size --- src/core/AudioEngine/AudioEngine.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/AudioEngine/AudioEngine.cpp b/src/core/AudioEngine/AudioEngine.cpp index 53599d1e52..f023a22658 100644 --- a/src/core/AudioEngine/AudioEngine.cpp +++ b/src/core/AudioEngine/AudioEngine.cpp @@ -1788,6 +1788,9 @@ void AudioEngine::updateSongSize() { updatePatternSize( m_pQueuingPosition ); if ( pHydrogen->getMode() == Song::Mode::Pattern ) { + AE_INFOLOG( QString( "[Pattern] Size update: [%1] -> [%2]" ) + .arg( m_fSongSizeInTicks ) + .arg( static_cast( pSong->lengthInTicks() ) ) ); m_fSongSizeInTicks = static_cast( pSong->lengthInTicks() ); EventQueue::get_instance()->push_event( EVENT_SONG_SIZE_CHANGED, 0 ); @@ -1837,6 +1840,9 @@ void AudioEngine::updateSongSize() { ); #endif + AE_INFOLOG( QString( "[Song] Size update: [%1] -> [%2]" ) + .arg( m_fSongSizeInTicks ).arg( fNewSongSizeInTicks ) ); + m_fSongSizeInTicks = fNewSongSizeInTicks; auto endOfSongReached = [&](){ @@ -1846,7 +1852,6 @@ void AudioEngine::updateSongSize() { } locate( 0 ); - #if AUDIO_ENGINE_DEBUG AE_DEBUGLOG( QString( "[End of song reached] fNewStrippedTick: %1, fRepetitions: %2, m_fSongSizeInTicks: %3, fNewSongSizeInTicks: %4, transport: %5, queuing: %6" ) .arg( fNewStrippedTick, 0, 'f' )