Re: looping from a push source

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If you want update the scrollbar of GraphEdit, and you want it to go to
the beginning on every loop - I think that the only thing that you can
do is Stop, Seek to 0 and Play. This will lead to black frames, but I
don't think there is another way. If you want to update a scrollbar of
your own application, you can do it easily by subtracting the media
duration from your graph position on every loop.

If someone can think of something better, it will be interesting to
here it.

The behaviour of the graph when the timestamps exceed the graph
duration depends on the curent renderers. Here you'll have to implement
IMediaPosition in you push source and on Get_Duration you must return
some big value - for instance 1 year. This will protect your graph from
stopping.

Regards,
Tsviatko Jongov
http://tsviatko.jongov.com


stewartb@xxxxxxxxx написа:
sorry, i mean while playback is going i need to update the scroll bar,
and if i dont reset the timestamp the values will just keep getting
bigger, or will the graph freak out since the timestamps will exceed
the duration or is the graph smart enuf to reset to zero... i guess ill
find out soon enough.

.



Relevant Pages

  • Re: an old worn interview question
    ... I suppose Oracle could implement this in a cheesy fashion: ... the size of the graph, ... I doubt hierarchical query loop detection is possible. ...
    (comp.programming)
  • Re: efficiently accumulating values
    ... (defun find-words (graph) ... "Given GRAPH find all possible words." ... do (loop as word in (get-words graph i j) ...
    (comp.lang.lisp)
  • Re: efficiently accumulating values
    ... Here is the lisp I wrote when I fisrt came with my questions. ... (loop as line = (read-line stream nil nil) ... (defun find-words (graph) ... "Given GRAPH find all possible words." ...
    (comp.lang.lisp)
  • Re: efficiently accumulating values
    ... do (loop as j from 0 to (1- n) ... (setf result gotten-words)) ... NCONCING accumulation clause: ... "Given GRAPH find all possible words." ...
    (comp.lang.lisp)
  • Re: Synchronized preview of Composite and Line in
    ... keep the streams in sync, because they come from 2 separate ... the graph, so A will have a timestamp TSin the graph. ... sync according to their timestamps but those timestamps ...
    (microsoft.public.win32.programmer.directx.video)