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 21:18:17
|
Dominic, Dominic Mazzoni schrieb: >> 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? >> > > He should have a choice. He should see what the autosaved version > looks like and it shouldn't delete the actually-saved version upon > open; if he decides to close the file he should be able to open the > actually-saved version and have it still work. Perhaps another way > to accomplish this would be to bypass the check for orphaned > blockfiles until the next time the project is closed and opened. > Yes, that was what I also thought of. I'd like to implement a basic version first, which only opens the autosaved file, just like, say, OpenOffice does it. OpenOffice, when it crashes, shows a dialog next time it is opened, and you can recover files from that dialog that were open at the time the crash happened. However, actual data on disk is not changed before you choose "Save as" and save the recovered file. I think that could be a good start for Audacity, too. I know that this is not the optimum solution, but it is pretty much industry-standard (I believe Microsoft Office does it like this too, but actually I never had Office crashing on me!). If we have a first version, we can improve the handling to include undo information etc. > I know what you mean, and perhaps aspects of the recovery code would > go elsewhere, but don't you agree that the blockfile-loading part of > recovery should be the same code that loads normal blockfiles, to > avoid duplication? You could always wrap it in another tag that > would be handled by your class, but still use <blockfile> further > down the hierarchy. > I have to admit that I still have to look at the actual blockfile-loading and -writing part to get an idea where I could hook the auto-save and recovery feature into. I suppose that after that, I'll just agree with you :P Markus |