MCPcopy Create free account
hub / github.com/audacity/audacity / UpdateMeters

Method UpdateMeters

src/MixerBoard.cpp:1136–1163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1134}
1135
1136void 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
1166void MixerBoard::UpdateWidth()

Callers

nothing calls this directly

Calls 3

IsShownMethod · 0.80
UpdateMeterMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected