Skip to content

Commit

Permalink
AudioEngine: add logs in updateSongSize
Browse files Browse the repository at this point in the history
indicate the change in song size
  • Loading branch information
theGreatWhiteShark committed Oct 31, 2024
1 parent f5c4e73 commit e3dea9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/AudioEngine/AudioEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>( pSong->lengthInTicks() ) ) );
m_fSongSizeInTicks = static_cast<double>( pSong->lengthInTicks() );

EventQueue::get_instance()->push_event( EVENT_SONG_SIZE_CHANGED, 0 );
Expand Down Expand Up @@ -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 = [&](){
Expand All @@ -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' )
Expand Down

0 comments on commit e3dea9c

Please sign in to comment.