Author Topic: Playback Gremlins  (Read 1476 times)

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Playback Gremlins
« on: September 06, 2015, 10:11:49 PM »
I did some troubleshooting on a few playback issues and I hope I've fixed all the playback gremlins that were hiding in the code.  I found the bug where if the first thing you do after opening a sequence is hit the play button and you didn't see the play marker line moving across the screen.  That turned out to be an uninitialized variable in the Timeline class that made it think you had clicked in the timeline to initiate play so it returned an invalid play start time of -1.  I fixed the bug that Gerry found where if you paused model playback and dropped an effect and then un-paused the play marker line wasn't moving.  I also found when model playback was paused there was code that would stop playback but without calling the proper method that shuts down the media playback so it left it in a bad state.  That one was triggered by an event when effects were unselected so it was a race condition as to which of two events got processed first as to whether it messed up playback or not.  So let me know if you find anymore weird things.

Just remember we have two playback modes.  Effect Play just renders the effects without playing the audio so it's the preview playback you get when selecting an effect.  Model Play is when you press Play and the sequence is playing.  If you pause Model Play and then drop an effect then I'm canceling Model Play and initiating Effect Play.  You can Pause Effect Play and then Pause or Play will UnPause it.  It can get confusing because you could be in Effect Play and hit Pause, then hit Play which will resume Effect Play, and then hit Play a second time and then Model Play is initiated.  I'd almost like to have somewhere that I can show the playback mode.

Offline gerry

  • Hero Member
  • *****
  • Posts: 695
    • View Profile
Re: Playback Gremlins
« Reply #1 on: September 07, 2015, 12:22:25 AM »
Thanks Gil !

The number of times , I press pause , do something to adjust the effect or drop the next one and then press pause again to resume is quite astounding.. 

Gerry

Offline Setarcos

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Playback Gremlins
« Reply #2 on: September 08, 2015, 01:27:19 PM »
Thanks Gil,

That happened to me a few times, but I could never remember how I got it into that state.