ddionisio / MateAnimator

Adding more features to the open sourced Animator from Unity.
113 stars 29 forks source link

Audio continues to play when paused or stopped. #11

Closed ghost closed 10 years ago

ghost commented 10 years ago

When I put an audio track in the timeline, it continues to play when I press pause or stop. This is also the case when I use the playmaker actions (AMPause and AMStop). At this point, I'm unable to have a pause/play button that works correctly.

CFSworks commented 10 years ago

It appears that MateAnimator will only attempt to stop looping audio. This looks like a bugfix that was slipped in during commit ac43f425.

Does deleting the if statement on this line (making the src.Stop() unconditional) resolve it?

ddionisio commented 10 years ago

Yeah, removing the loop should be fine, let me go ahead and check it out.

ddionisio commented 10 years ago

This should be fixed now.

ghost commented 10 years ago

Thanks!!