Updates to the meter are passed across via meter updates, each contained in * a MeterUpdateMsg object */
| 158 | /* Updates to the meter are passed across via meter updates, each contained in |
| 159 | * a MeterUpdateMsg object */ |
| 160 | wxString MeterUpdateMsg::toString() |
| 161 | { |
| 162 | wxString output; // somewhere to build up a string in |
| 163 | output = wxString::Format(wxT("Meter update msg: %i channels, %i samples\n"), \ |
| 164 | kMaxMeterBars, numFrames); |
| 165 | for (int i = 0; i<kMaxMeterBars; i++) |
| 166 | { // for each channel of the meters |
| 167 | output += wxString::Format(wxT("%f peak, %f rms "), peak[i], rms[i]); |
| 168 | if (clipping[i]) |
| 169 | output += wxString::Format(wxT("clipped ")); |
| 170 | else |
| 171 | output += wxString::Format(wxT("no clip ")); |
| 172 | output += wxString::Format(wxT("%i head, %i tail\n"), headPeakCount[i], tailPeakCount[i]); |
| 173 | } |
| 174 | return output; |
| 175 | } |
| 176 | |
| 177 | wxString MeterUpdateMsg::toStringIfClipped() |
| 178 | { |
no outgoing calls
no test coverage detected