TimeBase Control Plugin for REALbasic

TimeBase Control Plugin for REALbasic

TimeBase Control Plugin for REALbasic

Version 1.0, August 12, 2002
--Initial release

Working With Time Bases
The Movie Toolbox provides a number of functions that allow you to work
with time bases. A QuickTime time base defines the time coordinate system
of a movie. However, you can also use QuickTime time bases to provide
general timing services.

Although most time base functions can be used at interrupt time, several of
the Movie Toolbox functions cannot.

Creating Time Bases
NewTimeBase lets you create a new time base. Time bases rely on either a
clock component or another time base for their time source. You can use
SetTimeBaseMasterTimeBase to cause one time base to be based on another
time base. GetTimeBaseMasterTimeBase allows you to determine the master
time base of a given time base. You can assign a clock component to a time
base; that clock then acts as the master clock for the time base. You can
use SetTimeBaseMasterClock to assign a clock component to a time base.
GetTimeBaseMasterClock enables you to determine the clock component that is
assigned to a time base. You can change the offset between a time base and
its time source by calling SetTimeBaseZero. You can set the time source of
a movie by calling SetMovieMasterTimeBase or SetMovieMasterClock.

Working With Time Base Values
Every time base contains a rate, a start time, a stop time, a current time,
and some status information. The Movie Toolbox provides a number of
functions that allow your application to work with the contents of a time
base. You can use time structures to represent either time values or
durations. Time values specify a point in time, relative to a given time
base. Durations specify a span of time, relative to a given time scale.
Durations are represented by time structures that have the time base set to
0 (that is, the base field in the time structure is set to NIL).

GetTimeBaseTime lets you retrieve the current time value of a time base.
You can set the current time value by calling SetTimeBaseTime; this
function requires you to provide a time structure. Alternatively, you can
set the current time based on a time value by calling SetTimeBaseValue. You
can determine the rate of a time base by calling GetTimeBaseRate. You can
set the rate of a time base by calling SetTimeBaseRate. You can determine
the effective rate of a specified time base (relative to the master time
base to which it is subordinate) by calling GetTimeBaseEffectiveRate. You
can retrieve the start time of a time base by calling GetTimeBaseStartTime.
You can set the start time of a time base by calling SetTimeBaseStartTime.
Similarly, you can use GetTimeBaseStopTime and SetTimeBaseStopTime to work
with the stop time of a time base. The Movie Toolbox provides functions
that allow you to work with the status information of a time base.
GetTimeBaseStatus allows you to read the current status of a time base.
GetTimeBaseFlags helps you obtain the control flags of a time base. You can
set these flags by calling SetTimeBaseFlags.

Hope you can use it for your benefit(s), the plugin comes with a little
sample project.

Alfred N. Van Hoek, Ph.D. (http://homepage.mac.com/vanhoek/)

 
AAPL
$282.52
Apple Inc.
-1.23
MSFT
$24.38
Microsoft Corpora
-0.11
GOOG
$525.62
Google Inc.
-0.17
MacTech Search:
Community Search:

Introducing the App Hall of Fame!
App discoverability continues to be a real issue. With the fast churn of apps in the App Store, an app has only a few weeks of promotional life in it before it‚Äôs largely forgotten. There are a few things developers can do to fix that, but those... | Read more »
Gobliiins Are Coming
In the midst of the huge Q4 launch schedule, the cult classic, Gobliiins, as well as the rest of the trilogy, are being ported to the iPhone in all of their original glory. The Goblins trilogy was a quirky Atari/Amiga game series from the early 90‚Äôs... | Read more »
myPhoneDesktop – Chrome to iPhone Extens...
Anyone who has used myPhoneDesktop knows that it is a fantastic tool for streamlining your onscreen workflow. Instead of having to type line after line into your phone directly, you can use myPhoneDesktop to type from your computer directly into... | Read more »
Classes Review
Developer: Dustlab Price: $0.99 Version Reviewed: 2.4.7 iPhone Integration Rating: 3 out of 5 stars User Interface Rating: 4 out of 5 stars Re-use / Replay Value Rating: 3 out of 5 stars Overall Rating: 3.33 out of 5 stars | Read more »
AutoVerbal Talking Soundboard Pro helps...
Being able to speak and communicate with others is something that many of us take for granted. It‚Äôs not so easy for many folks though, in particular for individuals with autism spectrum disorders, as well as those who have suffered various brain... | Read more »
Pocketbooth Review
Developer: Project Box Price: $0.99 Version Reviewed: 1.0 iPhone Integration Rating: 4 out of 5 stars User Interface Rating: 4 out of 5 stars Re-use / Replay Value Rating: 4.5 out of 5 stars Overall Rating: 4.17 out of 5 stars | Read more »
Get Your Roast Right With ‘Time To Roast...
Roasting meat, in the cooking world, is about as simple as it gets. The greatest roast recipe I‚Äôve ever found is from Michael Ruhlman‚Äôs website, with the recipe titled, ‚ÄúThe World‚Äôs Most Difficult Roasted Chicken Recipe.‚Äù | Read more »

All contents are Copyright 1984-2010 by Xplain Corporation. All rights reserved. Theme designed by Icreon.
Greetings, and welcome to the new MacTech web site! Our home page is designed to be your Industry Dashboard -- so you can have a snapshot of all that's relevant in the industry in one easy location. Many readers tell us that because the information is updated so frequently, they are now checking the site multiple times a day. Here's a quick run down of the features on the new web site, which can be subtle. We truly hope you register so that we can keep you up to date about new features as they are implemented. And, please use the BETA button in the top right to provide us any feedback, suggestions or bugs. We love to hear from you.