Changeset 359


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

Fixed bug with resetting initiation times on audio with negative times

Location:
trunk/src_apollo/org/apollo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src_apollo/org/apollo/audio/structure/AudioStructureModel.java

    r355 r359  
    608608                                                NullableLong initTime = (tinf != null) ? new NullableLong(tinf.getInitiationTime()) :
    609609                                                        NullableLong.fromLong(sampledTrackWidget.getInitiationTimeFromMeta());
    610                                                 if (initTime != null && initTime.getLongValue() < 0) initTime = null; // signify to load default from frame
    611                                                
     610
    612611                                                long runningTime = sampledTrackWidget.getRunningMSTimeFromRawAudio();
    613612                                                if (runningTime <= 0) runningTime = -1; // signify to load from file
  • trunk/src_apollo/org/apollo/widgets/SampledTrack.java

    r358 r359  
    803803                        // Nullify
    804804                        if (!f.exists() || !f.isFile()) f = null;
    805                
    806                        
     805
    807806                }
    808807
     
    10561055                // Dump memory to a temp file
    10571056                try {
     1057                       
    10581058                        // Always be unique
    10591059                        String uniqueID = AudioPathManager.generateLocateFileName("wav");
    10601060                        recoveryFile = File.createTempFile("APOLLO_BACKUP" + uniqueID, null);
     1061                       
     1062                        // To avoid filling up the end-users hardisk, mark file to be
     1063                        // deleted on exit (if not already deleted).
     1064                        recoveryFile.deleteOnExit();
    10611065               
    10621066                } catch (IOException e) {
Note: See TracChangeset for help on using the changeset viewer.