Re: [Audacity-devel] Recover
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Markus M. <me...@me...> - 2006-07-13 09:12:21
|
Hi Dominic, Dominic Mazzoni schrieb: > Yes, go for it! The tricky part might be to load both files somehow, > so that all of the right block files have reference counts. Hmmm.... I'm not sure I understand you. If the user chooses to do the recovery, he wants to have the newest project status from the recovery .aup file (as opposed to the probably way-to-old status from the project's last-saved .aup file). So why should it load both of them? > When we open an XML file, all we need to do is scan backwards from > the end for the last XML tag. If it's not </audacityproject>, we > know it might have been due to a crash, and we just append it to the > end, or otherwise hack the XML parsing so that it always gets that > final tag. Then we can use our build-in parsing to automatically > load those blocks. > This sounds elegant, but I have to think a bit about it. Currently I'd prefer if the recovery code was separated from the usual serialization support, both in terms of source code location and data files. Markus |