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

Method toString

src/widgets/MeterPanel.cpp:160–175  ·  view source on GitHub ↗

Updates to the meter are passed across via meter updates, each contained in * a MeterUpdateMsg object */

Source from the content-addressed store, hash-verified

158/* Updates to the meter are passed across via meter updates, each contained in
159 * a MeterUpdateMsg object */
160wxString MeterUpdateMsg::toString()
161{
162wxString output; // somewhere to build up a string in
163output = wxString::Format(wxT("Meter update msg: %i channels, %i samples\n"), \
164 kMaxMeterBars, numFrames);
165for (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 }
174return output;
175}
176
177wxString MeterUpdateMsg::toStringIfClipped()
178{

Callers 15

loadMethod · 0.45
setDataMethod · 0.45
loadMethod · 0.45
saveRecentFilesListMethod · 0.45
thumbnailMethod · 0.45
openProjectMethod · 0.45
newProjectMethod · 0.45
closeOpenedProjectMethod · 0.45
saveProjectMethod · 0.45
askShareAudioLocationMethod · 0.45
compatRecentFilesDataMethod · 0.45
readMetaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected