Changeset 358


Ignore:
Timestamp:
10/10/08 10:00:23 (16 years ago)
Author:
bjn8
Message:

Improved deletion so that audio is always dumped to a recovery file - avoids filling up HD with abandoned audio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src_apollo/org/apollo/widgets/SampledTrack.java

    r355 r358  
    785785                if (f == null) { // must be importing or loading from local repository
    786786
    787                         if (loadFilenameArgument != null) {
    788                                
    789                                 if (loadFilenameArgument.startsWith(ARG_IMPORT_TAG)) { // importing a file?
    790                                        
    791                                         setLoadScreenMessage("Importing audio file...");
    792                                        
    793                                         isImporting = true;
    794                                         f = new File(loadFilenameArgument.substring(ARG_IMPORT_TAG.length()));
    795                                        
    796                                 } else { // local
    797                                         assert(loadFilenameArgument == localFileName);
    798                                        
    799                                         setLoadScreenMessage("Loading audio file...");
    800                                        
    801                                         f = new File(
    802                                                         AudioPathManager.AUDIO_HOME_DIRECTORY + localFileName);
    803                                 }
    804                                
    805                                 // Nullify
    806                                 if (!f.exists() || !f.isFile()) f = null;
    807                         }
     787                        if (loadFilenameArgument != null && loadFilenameArgument.startsWith(ARG_IMPORT_TAG)) { // importing a file?
     788                               
     789                                setLoadScreenMessage("Importing audio file...");
     790                               
     791                                isImporting = true;
     792                                f = new File(loadFilenameArgument.substring(ARG_IMPORT_TAG.length()));
     793                               
     794                        } else { // local
     795                                assert(loadFilenameArgument == null || loadFilenameArgument == localFileName);
     796                               
     797                                setLoadScreenMessage("Loading audio file...");
     798                               
     799                                f = new File(
     800                                                AudioPathManager.AUDIO_HOME_DIRECTORY + localFileName);
     801                        }
     802                       
     803                        // Nullify
     804                        if (!f.exists() || !f.isFile()) f = null;
     805               
    808806                       
    809807                }
Note: See TracChangeset for help on using the changeset viewer.