Changeset 324

Show
Ignore:
Timestamp:
08/12/08 21:08:29 (5 years ago)
Author:
jakoblund
Message:

JACK Driver: small code cleanup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libs/hydrogen/src/IO/jack_output.cpp

    r317 r324  
    248248                float hydrogen_ticks_to_locate =  bar_ticks + ( m_JackTransportPos.beat-1 )*hydrogen_TPB + m_JackTransportPos.tick *( hydrogen_TPB/m_JackTransportPos.ticks_per_beat ) ; 
    249249         
    250 //              char bbt[30]; 
    251 //              sprintf( bbt, "Locating BBT: [%d,%d,%d]", m_JackTransportPos.bar, m_JackTransportPos.beat, m_JackTransportPos.tick ); 
     250//              INFOLOG( QString( "Position from Time Master: BBT [%1,%2,%3]" ) . arg( m_JackTransportPos.bar ) . arg( m_JackTransportPos.beat ) . arg( m_JackTransportPos.tick ) ); 
    252251//              WARNINGLOG( QString(bbt) + " -- Tx/Beat = "+to_string(m_JackTransportPos.ticks_per_beat)+", Meter "+to_string(m_JackTransportPos.beats_per_bar)+"/"+to_string(m_JackTransportPos.beat_type)+" =>tick " + to_string( hydrogen_ticks_to_locate ) ); 
    253252         
     
    348347                        } else { 
    349348                                if ( Preferences::getInstance()->m_bJackMasterMode == Preferences::NO_JACK_TIME_MASTER ) { 
    350                                         // NOTE There's no timebase_master. If audioEngine_process_checkBPMChanged handled a tempo change during last cycle, the offset doesn't match. 
     349                                        // If There's no timebase_master, and audioEngine_process_checkBPMChanged handled a tempo change during last cycle, the offset doesn't match, but hopefully it was calculated correctly: 
     350                                        m_transport.m_nFrames = m_JackTransportPos.frame - bbt_frame_offset; 
    351351                                        // In jack 'slave' mode, if there's no master, the following line is needed to be able to relocate by clicking the song ruler (wierd corner case, but still...) 
    352                                         m_transport.m_nFrames = m_JackTransportPos.frame - bbt_frame_offset; 
    353352                                        if ( m_transport.m_status == TransportInfo::ROLLING ) 
    354353                                                        H->triggerRelocateDuringPlay(); 
     
    358357                                        m_transport.m_nFrames = H->getHumantimeFrames() - getBufferSize(); 
    359358                                } 
    360 //                              bbt_frame_offset = 0; 
    361359                        } 
    362360                }