mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-05 11:13:16 +01:00
John (Thales) code to make the waveform display look like the output of the gain and pan sliders, rather than the input. Added as EXPERIMENTAL_OUTPUT_DISPLAY since there is work to do, but I think this deserves wider input/views.
This commit is contained in:
@@ -102,6 +102,18 @@ bool AudacityPrintout::OnPrintPage(int page)
|
||||
dc->SetPen(*wxBLACK_PEN);
|
||||
AColor::Line(*dc, 0, r.y, width, r.y);
|
||||
|
||||
#ifdef EXPERIMENTAL_OUTPUT_DISPLAY
|
||||
if(MONO_WAVE_PAN(n)){
|
||||
y += r.height;
|
||||
r.x = 0;
|
||||
r.y = y;
|
||||
r.width = width;
|
||||
r.height = (int)(n->GetHeight(true) * scale);
|
||||
artist.DrawTrack(n, *dc, r, &viewInfo, false, false, false, false);
|
||||
dc->SetPen(*wxBLACK_PEN);
|
||||
AColor::Line(*dc, 0, r.y, width, r.y);
|
||||
}
|
||||
#endif
|
||||
n = iter.Next();
|
||||
y += r.height;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user