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
465465 _paused = YES ;
466466 [self clearAllActions ];
467467
468+ // Set the running scene
469+ _runningSequence = [self sequenceFromSequenceId: seqId];
470+ _runningSequence.time = 0 .0f ;
471+ _runningSequence.tween = tweenDuration;
472+
468473 [self addSequenceCallBacks: seqId tweenDuration: tweenDuration startTime: 0 ];
469474
470475 // Contains all Sequence Propertys / Keyframe
@@ -506,25 +511,12 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
506511 }
507512 }
508513 }
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+
519515 }
520516
521517
522518 }
523519
524- // Set the running scene
525- _runningSequence = [self sequenceFromSequenceId: seqId];
526- _runningSequence.time = 0 .0f ;
527-
528520 _paused = NO ;
529521}
530522
Original file line number Diff line number Diff line change 3333#import " ARCSafe_MemMgmt.h"
3434#import " OALNotifications.h"
3535
36- #if __CC_PLATFORM_IOS || __CC_PLATFORM_MAC
36+ #if __CC_PLATFORM_IOS
3737
3838#import < AudioToolbox/AudioToolbox.h>
3939#import " IOSVersion.h"
@@ -780,7 +780,8 @@ - (void)inputIsAvailableChanged:(BOOL)isInputAvailable
780780
781781#endif /* __IPHONE_OS_VERSION_MAX_ALLOWED */
782782
783- #elif __CC_PLATFORM_ANDROID // ANDROID
783+
784+ #elif __CC_PLATFORM_ANDROID || __CC_PLATFORM_MAC// ANDROID
784785#pragma mark Android OALAudioSession
785786#import " CCDirector.h"
786787@implementation OALAudioSession
You can’t perform that action at this time.
0 commit comments