http://audacity.238276.n2.nabble.com/Fr ... 64569.html
Martyn asked:
It's only a couple lines of code:it would be great if the view of each track (Waveform, Waveform (dB), Spectrogram, Spectrogram (logF), Pitch (EAC)) were saved to the project (AUP) file
Code: Select all
Index: src/WaveTrack.cpp
===================================================================
--- src/WaveTrack.cpp (revision 13514)
+++ src/WaveTrack.cpp (working copy)
@@ -1473,6 +1473,8 @@
return false;
mChannel = nValue;
}
+ else if (!wxStrcmp(attr, wxT("waveTrackDisplay")) && XMLValueChecker::IsGoodInt(strValue) && strValue.ToLong(&nValue))
+ mDisplay = nValue;
else if (!wxStrcmp(attr, wxT("linked")) &&
XMLValueChecker::IsGoodInt(strValue) && strValue.ToLong(&nValue))
SetLinked(nValue != 0);
@@ -1553,6 +1555,7 @@
xmlFile.WriteAttr(wxT("rate"), mRate);
xmlFile.WriteAttr(wxT("gain"), (double)mGain);
xmlFile.WriteAttr(wxT("pan"), (double)mPan);
+ xmlFile.WriteAttr(wxT("waveTrackDisplay"), GetDisplay());
for (WaveClipList::compatibility_iterator it=GetClipIterator(); it; it=it->GetNext())
{