Changeset 367
- Timestamp:
- 10/11/08 15:48:21 (16 years ago)
- Location:
- trunk/src_apollo/org/apollo/audio
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src_apollo/org/apollo/audio/ApolloSubjectChangedEvent.java
r355 r367 62 62 63 63 /** 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; 65 68 66 69 /** The channel ID of the track sequence is passed as state info. */ -
trunk/src_apollo/org/apollo/audio/structure/AudioStructureModel.java
r363 r367 1187 1187 1188 1188 boolean doNotify = false; 1189 AbstractTrackGraphNode tinf = null; 1189 1190 1190 1191 synchronized(sharedResourceLocker) { // IMPORTANT: Must wait for new graphs to be added to the shared resources … … 1194 1195 // Locate parent frame 1195 1196 OverdubbedFrame odframe = null; 1196 1197 1197 1198 if (parentFrameName != null) odframe = allOverdubbedFrames.get(parentFrameName.toLowerCase()); 1198 1199 else odframe = getParentOverdubbedFrame(localFilename); … … 1200 1201 // adjust name in model 1201 1202 if (odframe != null) { // is loaded? 1202 AbstractTrackGraphNodetinf = odframe.getTrack(localFilename);1203 tinf = odframe.getTrack(localFilename); 1203 1204 if (tinf != null && 1204 1205 (tinf.getInitiationTime() != initTime || tinf.getYPixelPosition() != yPos)) { … … 1216 1217 // Notify observers. 1217 1218 if (doNotify) 1218 fireSubjectChanged(new SubjectChangedEvent(ApolloSubjectChangedEvent.GRAPH_ POSITION_CHANGED, null));1219 fireSubjectChanged(new SubjectChangedEvent(ApolloSubjectChangedEvent.GRAPH_TRACK_POSITION_CHANGED, tinf)); 1219 1220 } 1220 1221 … … 1240 1241 1241 1242 boolean doNotify = false; 1243 AbstractTrackGraphNode tinf = null; 1242 1244 1243 1245 synchronized(sharedResourceLocker) { // IMPORTANT: Must wait for new graphs to be added to the shared resources … … 1253 1255 // adjust name in model 1254 1256 if (odframe != null) { // is loaded? 1255 AbstractTrackGraphNodetinf = odframe.getLinkedTrack(virtualFilename);1257 tinf = odframe.getLinkedTrack(virtualFilename); 1256 1258 if (tinf != null && 1257 1259 (tinf.getInitiationTime() != initTime || tinf.getYPixelPosition() != yPos)) { … … 1270 1272 // Notify observers. 1271 1273 if (doNotify) 1272 fireSubjectChanged(new SubjectChangedEvent(ApolloSubjectChangedEvent.GRAPH_ POSITION_CHANGED, null));1274 fireSubjectChanged(new SubjectChangedEvent(ApolloSubjectChangedEvent.GRAPH_LINKED_TRACK_POSITION_CHANGED, tinf)); 1273 1275 } 1274 1276 -
trunk/src_apollo/org/apollo/audio/util/MultiTrackPlaybackController.java
r365 r367 114 114 switch (event.getID()) { 115 115 case ApolloSubjectChangedEvent.GRAPH_TRACK_REMOVED: // TODO: Remove while loading! 116 116 case ApolloSubjectChangedEvent.GRAPH_TRACK_POSITION_CHANGED: 117 117 118 118 if (isPlaying()) { … … 140 140 141 141 } 142 143 // Fall through 142 canInstantlyResume = false; 143 break; 144 145 case ApolloSubjectChangedEvent.GRAPH_LINKED_TRACK_POSITION_CHANGED: 144 146 case ApolloSubjectChangedEvent.GRAPH_LINKED_TRACK_REMOVED: // TODO: Remove while loading! 145 147 … … 171 173 } 172 174 } 173 174 // Fall through 175 176 canInstantlyResume = false; 177 break; 178 175 179 case ApolloSubjectChangedEvent.GRAPH_LINKED_TRACK_ADDED: 176 180 case ApolloSubjectChangedEvent.GRAPH_TRACK_ADDED: 177 181 case ApolloSubjectChangedEvent.GRAPH_TRACK_EDITED: 178 179 // TODO: FINER CONTROL: If change is event related to the current group180 // of overdubs and if it can be managed.181 182 this.canInstantlyResume = false; 182 183 183 break; 184 184 -
trunk/src_apollo/org/apollo/audio/util/SoundDesk.java
r366 r367 1305 1305 * as the TrackMixSubject channel ID. 1306 1306 **/ 1307 String masterMixID; // never null, itself can be a mastermix1307 String masterMixID; // never null, itself can be a mastermix 1308 1308 1309 1309 TrackSequence tseq; // resets to null to avoid holding expensive state ref (track model) … … 1322 1322 * 1323 1323 * @throws IllegalArgumentException 1324 * If mixSub's channel ID is inv laid.1324 * If mixSub's channel ID is invalid. 1325 1325 */ 1326 1326 Channel(TrackMixSubject mixSub) {
Note:
See TracChangeset
for help on using the changeset viewer.