File tree Expand file tree Collapse file tree 2 files changed +9
-16
lines changed
external/ObjectAL/Session Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -465,6 +465,11 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
465
465
_paused = YES ;
466
466
[self clearAllActions ];
467
467
468
+ // Set the running scene
469
+ _runningSequence = [self sequenceFromSequenceId: seqId];
470
+ _runningSequence.time = 0 .0f ;
471
+ _runningSequence.tween = tweenDuration;
472
+
468
473
[self addSequenceCallBacks: seqId tweenDuration: tweenDuration startTime: 0 ];
469
474
470
475
// Contains all Sequence Propertys / Keyframe
@@ -506,25 +511,12 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
506
511
}
507
512
}
508
513
}
509
-
510
- // Reset nodes that have sequence node properties, build first keyframe action sequence.
511
- for (NSString * propName in seqNodeProps) {
512
- CCBSequenceProperty* seqProp = [seqNodeProps objectForKey: propName];
513
- [seqNodePropNames addObject: propName];
514
-
515
- // Reset Node State to First KeyFrame
516
- [self setKeyFrameForNode: node sequenceProperty: seqProp tweenDuration: tweenDuration keyFrame: 0 ];
517
-
518
- }
514
+
519
515
}
520
516
521
517
522
518
}
523
519
524
- // Set the running scene
525
- _runningSequence = [self sequenceFromSequenceId: seqId];
526
- _runningSequence.time = 0 .0f ;
527
-
528
520
_paused = NO ;
529
521
}
530
522
Original file line number Diff line number Diff line change 33
33
#import " ARCSafe_MemMgmt.h"
34
34
#import " OALNotifications.h"
35
35
36
- #if __CC_PLATFORM_IOS || __CC_PLATFORM_MAC
36
+ #if __CC_PLATFORM_IOS
37
37
38
38
#import < AudioToolbox/AudioToolbox.h>
39
39
#import " IOSVersion.h"
@@ -780,7 +780,8 @@ - (void)inputIsAvailableChanged:(BOOL)isInputAvailable
780
780
781
781
#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED */
782
782
783
- #elif __CC_PLATFORM_ANDROID // ANDROID
783
+
784
+ #elif __CC_PLATFORM_ANDROID || __CC_PLATFORM_MAC// ANDROID
784
785
#pragma mark Android OALAudioSession
785
786
#import " CCDirector.h"
786
787
@implementation OALAudioSession
You can’t perform that action at this time.
0 commit comments