Re: Snack, play sound: script behavior in C++ program diifers from the same running under Wish.
- From: skulinetz@xxxxxxxxxxxxxxxxxx
- Date: 30 Apr 2007 07:28:17 -0700
On 27 апр, 23:15, David Gravereaux <davyg...@xxxxxxxxx> wrote:
Wait a sec here... You aren't running the event loop!? See Tk_Main and
Tk_MainLoop in the Tk source to understand why you need to.
I altered my code.
I tried with async handlers (Tcl_AsyncCreate...) and with event loop
(Tcl_CreateEventSource..., Tcl_DoOneEvent), but i not gained
functionality that i expected.
Problem is that scripts not executes asyncronously. Consider playing
script (play.tcl) from first topic. It can execute indefinitely long
time. While testing with event loop i see that Tcl_DoOneEvent not
returns while sound is playing. So, i can not call other commands,
that pauses or stops playing script.
.
- References:
- Prev by Date: Re: Packages and Expect
- Next by Date: Re: Packages and Expect
- Previous by thread: Re: Snack, play sound: script behavior in C++ program diifers from the same running under Wish.
- Next by thread: tcl_platform weirdness on Win Vista
- Index(es):
Relevant Pages
|