Eprime Digest - 07/29/01

Brandon Cernicky brandon_cernicky at yahoo.com
Thu Aug 2 12:23:45 UTC 2001


The SoundOut.Filename property is read/write at
runtime.

Any time the SoundOut.Filename property changes, a
subsequent call to SoundOut.Load needs to occur prior
to calling SoundOut.Run/Play.

Note that at runtime, the value for SoundOut.Filename
must point to a valid .wav file.  The [SoundFile]
nomenclature for referencing attributes is a shorthand
way for E-Studio to call c.GetAttrib("SoundFile") at
runtime.  Using the [attrib] brackets for attribute
references at runtime will result in a runtime error
because the SoundOut object will not translate that
into the c.GetAttrib method.

Therefore, except for some specific paradigms, it is
probably best to set the SoundOut.Filename to an
attribute [SoundFile] in E-Studio.  Then, if the
paradigm requires a different value than the value
currently in the context, the author simply needs to
call c.SetAttrib("SoundFile"), "sound.wav".  Then, the
you need not worry about calling the SoundOut.Load
method (since E-Studio sets that up when an [attrib]
is specified for the SoundOut.Filename).

Note that the exact specifics would also be true for
the ImageDisplay.Filename property as well (with
images versus sounds of course).

-Brandon




__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



More information about the Eprime mailing list