The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Easy to get the audio out of sync with the graphics (Repost)
Replies: 14   Last Post: Apr 26, 2013 11:08 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Clif McInnis

Posts: 11
Registered: 4/11/13
Re: Speak errors (was Re: audio)
Posted: Apr 26, 2013 11:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi debguy,
Yes, I think that a race condition is what is happening. When the code is run without Pause statements, the graphics can easily race ahead of the audio, and when Pause statements are included, after each speak[], the audio races ahead of the graphics. I tried to find "FrontEndEvaluate" in the Documentation Center, but it gave me "FrontEndExecute" (which did not seem to address the question) instead.
I have also tried to disable the buttons (Enable-> False) when the button is pressed and have them enable again when the graphics has updated, but that doesn't seem to work(does about the same thing as the pause statements).
I appreciate all suggestions.

> (a race condition - that is why I suggested simple waiting. i see no
> solution posted above so let me try again....)


> The Front-End has it's own evaluator separate from the kernel. I'm
> thinking maybe that's where your split (and then race condition)
> occurs. Make sure all expressions effected are done by one or the
> other but are not split in-between both. See "FrontEndEvaluate" for
> more info. I'm thinking that because I beleive many new features todo
> with dynamic front end content have some level of integration with the
> new front-end evaluator.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.