Changeset 367


Ignore:
Timestamp:
10/11/08 15:48:21 (16 years ago)
Author:
bjn8
Message:

Small fixes

Location:
trunk/src_apollo/org/apollo/audio
Files:
4 edited

Legend:

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

    r355 r367  
    6262       
    6363        /** In terms of Y-Pixel OR Initiation time (implicit X pixel)*/
    64         public static final int GRAPH_POSITION_CHANGED = 127;
     64        public static final int GRAPH_TRACK_POSITION_CHANGED = 127;
     65       
     66        /** In terms of Y-Pixel OR Initiation time (implicit X pixel)*/
     67        public static final int GRAPH_LINKED_TRACK_POSITION_CHANGED = 128;
    6568       
    6669        /** The channel ID of the track sequence is passed as state info. */
  • trunk/src_apollo/org/apollo/audio/structure/AudioStructureModel.java

    r363 r367  
    11871187
    11881188                boolean doNotify = false;
     1189                AbstractTrackGraphNode tinf = null;
    11891190               
    11901191                synchronized(sharedResourceLocker) { // IMPORTANT: Must wait for new graphs to be added to the shared resources
     
    11941195                        // Locate parent frame
    11951196                        OverdubbedFrame odframe = null;
    1196                        
     1197
    11971198                        if (parentFrameName != null) odframe = allOverdubbedFrames.get(parentFrameName.toLowerCase());
    11981199                        else odframe = getParentOverdubbedFrame(localFilename);
     
    12001201                        // adjust name in model
    12011202                        if (odframe != null) { // is loaded?
    1202                                 AbstractTrackGraphNode tinf = odframe.getTrack(localFilename);
     1203                                tinf = odframe.getTrack(localFilename);
    12031204                                if (tinf != null &&
    12041205                                                (tinf.getInitiationTime() != initTime || tinf.getYPixelPosition() != yPos)) {
     
    12161217                // Notify observers.
    12171218                if (doNotify)
    1218                         fireSubjectChanged(new SubjectChangedEvent(ApolloSubjectChangedEvent.GRAPH_POSITION_CHANGED, null));
     1219                        fireSubjectChanged(new SubjectChangedEvent(ApolloSubjectChangedEvent.GRAPH_TRACK_POSITION_CHANGED, tinf));
    12191220        }
    12201221
     
    12401241
    12411242                boolean doNotify = false;
     1243                AbstractTrackGraphNode tinf = null;
    12421244               
    12431245                synchronized(sharedResourceLocker) { // IMPORTANT: Must wait for new graphs to be added to the shared resources
     
    12531255                        // adjust name in model
    12541256                        if (odframe != null) { // is loaded?
    1255                                 AbstractTrackGraphNode tinf = odframe.getLinkedTrack(virtualFilename);
     1257                                tinf = odframe.getLinkedTrack(virtualFilename);
    12561258                                if (tinf != null &&
    12571259                                                (tinf.getInitiationTime() != initTime || tinf.getYPixelPosition() != yPos)) {
     
    12701272                // Notify observers.
    12711273                if (doNotify)
    1272                         fireSubjectChanged(new SubjectChangedEvent(ApolloSubjectChangedEvent.GRAPH_POSITION_CHANGED, null));
     1274                        fireSubjectChanged(new SubjectChangedEvent(ApolloSubjectChangedEvent.GRAPH_LINKED_TRACK_POSITION_CHANGED, tinf));
    12731275        }
    12741276       
  • trunk/src_apollo/org/apollo/audio/util/MultiTrackPlaybackController.java

    r365 r367  
    114114                switch (event.getID()) {
    115115                case ApolloSubjectChangedEvent.GRAPH_TRACK_REMOVED: // TODO: Remove while loading!
    116                        
     116                case ApolloSubjectChangedEvent.GRAPH_TRACK_POSITION_CHANGED:
    117117                       
    118118                        if (isPlaying()) {
     
    140140                               
    141141                        }
    142                        
    143 //                       Fall through
     142                        canInstantlyResume = false;
     143                        break;
     144
     145                case ApolloSubjectChangedEvent.GRAPH_LINKED_TRACK_POSITION_CHANGED:
    144146                case ApolloSubjectChangedEvent.GRAPH_LINKED_TRACK_REMOVED: // TODO: Remove while loading!
    145147                       
     
    171173                                }
    172174                        }
    173                                
    174                         // Fall through
     175                       
     176                        canInstantlyResume = false;
     177                        break;
     178                               
    175179                case ApolloSubjectChangedEvent.GRAPH_LINKED_TRACK_ADDED:
    176180                case ApolloSubjectChangedEvent.GRAPH_TRACK_ADDED:
    177181                case ApolloSubjectChangedEvent.GRAPH_TRACK_EDITED:
    178                        
    179                         // TODO: FINER CONTROL: If change is event related to the current group
    180                         // of overdubs and if it can be managed.
    181182                        this.canInstantlyResume = false;
    182                        
    183183                        break;
    184184                       
  • trunk/src_apollo/org/apollo/audio/util/SoundDesk.java

    r366 r367  
    13051305                 * as the TrackMixSubject channel ID.
    13061306                 **/
    1307                 String masterMixID; // never null, itself can be amastermix
     1307                String masterMixID; // never null, itself can be a mastermix
    13081308               
    13091309                TrackSequence tseq; // resets to null to avoid holding expensive state ref (track model)
     
    13221322                 *
    13231323                 * @throws IllegalArgumentException
    1324                  *              If mixSub's channel ID is invlaid.
     1324                 *              If mixSub's channel ID is invalid.
    13251325                 */
    13261326                Channel(TrackMixSubject mixSub) {
Note: See TracChangeset for help on using the changeset viewer.