"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/VstSyncController.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

VstSyncController.cpp  (lmms-1.2.0-rc7):VstSyncController.cpp  (lmms-1.2.0-rc8)
skipping to change at line 134 skipping to change at line 134
shmctl( m_shmID, IPC_RMID, NULL ); shmctl( m_shmID, IPC_RMID, NULL );
} }
else else
{ {
qWarning( "VstSyncController: shmdt() failed" ); qWarning( "VstSyncController: shmdt() failed" );
} }
#endif #endif
} }
} }
void VstSyncController::setAbsolutePosition( int ticks ) void VstSyncController::setAbsolutePosition( double ticks )
{ {
#ifdef VST_SNC_LATENCY #ifdef VST_SNC_LATENCY
m_syncData->ppqPos = ( ( ticks + 0 ) / (float)48 ) - m_syncData->m_latenc y; m_syncData->ppqPos = ( ( ticks + 0 ) / 48.0 ) - m_syncData->m_latency;
#else #else
m_syncData->ppqPos = ( ( ticks + 0 ) / (float)48 ); m_syncData->ppqPos = ( ( ticks + 0 ) / 48.0 );
#endif #endif
} }
void VstSyncController::setTempo( int newTempo ) void VstSyncController::setTempo( int newTempo )
{ {
m_syncData->m_bpm = newTempo; m_syncData->m_bpm = newTempo;
#ifdef VST_SNC_LATENCY #ifdef VST_SNC_LATENCY
m_syncData->m_latency = m_syncData->m_bufferSize * newTempo / ( (float) m _syncData->m_sampleRate * 60 ); m_syncData->m_latency = m_syncData->m_bufferSize * newTempo / ( (float) m _syncData->m_sampleRate * 60 );
#endif #endif
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)