void OMXPlayerSync::update ( int src_alpha ) { if( ( syncType == SYNC_SERVER ) ) { alpha = src_alpha; syncServer(); } if ( updateTicker >= UPDATE_THRESHOLD ) { if( ( syncType == SYNC_CLIENT ) ) { // printf( "\r%d = ", updateTicker ); syncClient( true ); updateJitter (); updateSpeed (); } updateTicker = 0; displayVerbose (); } else { syncClient( false ); updateTicker++; } }
void OMXPlayerSync::update () { if ( updateTicker >= UPDATE_THRESHOLD ) { syncWithServer (); if ( syncType == SYNC_CLIENT ) { updateJitter (); updateSpeed (); } updateTicker = 0; displayVerbose (); } else { updateTicker++; } }