Changeset 1981
- Timestamp:
- 04/16/11 07:41:26 (13 years ago)
- Files:
-
- trunk/libffado/src/libutil/TimestampedBuffer.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/libutil/TimestampedBuffer.cpp
r1972 r1981 1035 1035 ffado_timestamp_t diff = new_timestamp - m_buffer_next_tail_timestamp; 1036 1036 1037 // correct for when new_timestamp doesn't wrap at the same time as 1038 // m_buffer_next_tail_timestamp 1039 if (diff > m_wrap_at/2) 1040 diff = m_wrap_at - diff; 1041 else 1042 if (diff < -m_wrap_at/2) 1043 diff = m_wrap_at + diff; 1037 1044 #ifdef DEBUG 1038 1045