| 1134 | } |
| 1135 | |
| 1136 | void MixerBoard::UpdateMeters(const double t1, const bool bLoopedPlay) |
| 1137 | { |
| 1138 | if (!this->IsShown() || (t1 == BAD_STREAM_TIME)) |
| 1139 | return; |
| 1140 | |
| 1141 | if (mPrevT1 == BAD_STREAM_TIME) |
| 1142 | { |
| 1143 | mPrevT1 = t1; |
| 1144 | return; |
| 1145 | } |
| 1146 | |
| 1147 | // PRL: TODO: reexamine the assumptions below |
| 1148 | |
| 1149 | // In loopedPlay mode, at the end of the loop, mPrevT1 is set to |
| 1150 | // selection end, so the next t1 will be less, but we do want to |
| 1151 | // keep updating the meters. |
| 1152 | if (t1 <= mPrevT1) |
| 1153 | { |
| 1154 | if (bLoopedPlay) |
| 1155 | mPrevT1 = t1; |
| 1156 | return; |
| 1157 | } |
| 1158 | |
| 1159 | for (unsigned int i = 0; i < mMixerTrackClusters.size(); i++) |
| 1160 | mMixerTrackClusters[i]->UpdateMeter(mPrevT1, t1); |
| 1161 | |
| 1162 | mPrevT1 = t1; |
| 1163 | } |
| 1164 | |
| 1165 | |
| 1166 | void MixerBoard::UpdateWidth() |
nothing calls this directly
no test coverage detected