Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -urN ./mixxx-1.10.0final/src/widget/woverview.cpp ./mixxx-1.10.0orignal/src/widget/woverview.cpp
- --- ./mixxx-1.10.0final/src/widget/woverview.cpp 2011-12-24 08:23:20.000000000 +0530
- +++ ./mixxx-1.10.0orignal/src/widget/woverview.cpp 2012-02-13 22:14:54.084713000 +0530
- @@ -222,6 +222,7 @@
- setData(&ba, 0);
- m_analysing = false;
- m_iProgress = 0;
- + m_minuteMarkerList.clear();
- update();
- }
- @@ -272,7 +273,14 @@
- //from is deallocated. -- Albert Dec 22, 2009
- m_waveformSummary = *pWaveformSummary;
- m_liSampleDuration = liSampleDuration;
- -
- + TrackInfoObject* pTrackInfo = m_pCurrentTrack.data();
- + long oneMinute = 2 * (pTrackInfo->getSampleRate()) * 60;
- + m_roundDurationMinutes = (long)(m_liSampleDuration/oneMinute);
- + long increment = oneMinute;
- + for(int i = 0; i <= m_roundDurationMinutes; i++){
- + m_minuteMarkerList.append(float(oneMinute) * (width()-2)/m_liSampleDuration);
- + oneMinute = (long)(oneMinute + increment);
- + }
- waveformChanged = true;
- }
- @@ -301,6 +309,10 @@
- if (m_waveformSummary.at(i)+128>hfcMax)
- hfcMax = m_waveformSummary.at(i)+128;
- }
- + paint.setPen(QColor(255,255,255));
- + for(int i = 0; i<m_minuteMarkerList.size(); i++){
- + paint.drawLine(m_minuteMarkerList[i], 0, m_minuteMarkerList[i], height());
- + }
- // Draw waveform using hfc to determine color
- for (int i=0; i<width(); ++i)
- diff -urN ./mixxx-1.10.0final/src/widget/woverview.h ./mixxx-1.10.0orignal/src/widget/woverview.h
- --- ./mixxx-1.10.0final/src/widget/woverview.h 2011-12-24 08:23:20.000000000 +0530
- +++ ./mixxx-1.10.0orignal/src/widget/woverview.h 2012-02-13 21:07:15.757238000 +0530
- @@ -105,6 +105,9 @@
- QColor m_qColorSignal;
- QColor m_qColorProgress;
- int m_iProgressAlpha;
- +
- + int m_roundDurationMinutes;
- + QList<float> m_minuteMarkerList;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment