Lingo for Shockwave Audio

Date:  Mon, 11 Aug 1997 16:14:18 -0700
From: buzz@macromedia.com (Buzz Kettles)
Subject: SWA lingo
Leif was asking about cuePoints in SWA, & I realized that I had a quick description of SWA Lingo that I'd been meaning to post for a while ...

OK - Here's the deal on SWA Properties: (there are several 'sets' of properties for SWA Streaming)

SET 1 - Those that are static properties of the SWA file itself - encoded into the file when it is created

These get encoded into header of the SWA file when the file is created. They become available to Lingo ONLY AFTER a preLoad has been done (Either explicilty, or inherently as when you have done PLAY). BTW - For obvious reasons, they are not settable thru lingo.

SET 2 - Settings for the SWA Asset member (static setup for the container itself)

These are setup parameters - to be done BEFORE playing - (When in the STOP state)(state of member = 0)

SET 3 - Settings for CONTROLLING & interrogating the SWA Asset member of the sprite (dynamics)

the currentTime of sprite - the current playing time, in milliseconds, of the swa stream (gaps and pauses are _not_ counted in this number...so a timer started at the beginning of the file might show a different value). the mostRecentCuePoint of sprite - the number of the most recent cue point passed

These are standard properties of any member/sprite that supports cuepoints. IsPastCuePoint() also works (see the docs for more info).

These are the ones that run the show -

Hope This Helps

-Buzz