Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 675:3437e0fad7ae imaf_enc
IMAF load code from Jesus Corral Garcia
author | Chris Cannam |
---|---|
date | Mon, 04 Nov 2013 17:09:36 +0000 |
parents | ea786e8bd931 |
children | 26c5f7fd4807 |
comparison
equal
deleted
inserted
replaced
643:77fa3fdbfc7e | 675:3437e0fad7ae |
---|---|
948 | 948 |
949 RealTime rt0 = RealTime::frame2RealTime(f0, m_model->getSampleRate()); | 949 RealTime rt0 = RealTime::frame2RealTime(f0, m_model->getSampleRate()); |
950 RealTime rt1 = RealTime::frame2RealTime(f1, m_model->getSampleRate()); | 950 RealTime rt1 = RealTime::frame2RealTime(f1, m_model->getSampleRate()); |
951 | 951 |
952 if (f1 != f0 + 1 && (rt0.sec != rt1.sec || rt0.msec() != rt1.msec())) { | 952 if (f1 != f0 + 1 && (rt0.sec != rt1.sec || rt0.msec() != rt1.msec())) { |
953 text += tr("Time:\t%1 - %2") | 953 text += tr("Time:\t%1 - %2") |
954 .arg(rt0.toText(true).c_str()) | 954 .arg(rt0.toText(true).c_str()) |
955 .arg(rt1.toText(true).c_str()); | 955 .arg(rt1.toText(true).c_str()); |
956 } else { | 956 } else { |
957 text += tr("Time:\t%1") | 957 text += tr("Time:\t%1") |
958 .arg(rt0.toText(true).c_str()); | 958 .arg(rt0.toText(true).c_str()); |
959 } | 959 } |
960 | 960 |
961 size_t channels = 0, minChannel = 0, maxChannel = 0; | 961 size_t channels = 0, minChannel = 0, maxChannel = 0; |
962 bool mergingChannels = false, mixingChannels = false; | 962 bool mergingChannels = false, mixingChannels = false; |