pre-loading items in Slide object
David McFarlane
mcfarla9 at msu.edu
Mon Dec 3 19:45:28 UTC 2012
Terhi,
Start by looking at the SlideSoundOut and SoundBuffer topics in the
E-Basic Help facility. Then look at the "Load Image Upon Mouse
Click" example from the Samples area of the PST website, I think that
will show the mechanics of how to access Slide sub-objects. Then
take it from there.
-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)
/----
Stock reminder: 1) I do not work for PST. 2) PST's trained staff
take any and all questions at
http://support.pstnet.com/e%2Dprime/support/login.asp , and they
strive to respond to all requests in 24-48 hours -- this is pretty
much their substitute for proper documentation, so make full use of
it. 3) In addition, PST offers several instructional videos on their
YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do
get an answer from PST staff, please extend the courtesy of posting
their reply back here for the sake of others.
\----
At 12/2/2012 03:36 PM Sunday, you wrote:
>I have tried to preload soundfiles and moviefiles of a slide object
>in the beginning of the trial to decrease timing delay. (I can't use
>prerelease in my experiment.)
>
>I found a good example of preloading stimuli from
><http://imaging.mrc-cbu.cam.ac.uk/imaging/EprimeTiming>http://imaging.mrc-cbu.cam.ac.uk/imaging/EprimeTiming
>:
>
>----
>
>This example shows how to preload soundfiles:
>
>
>'Get the soundbuffer from the soundout object
>Dim SBuffer as SoundBuffer
>Set SBuffer = SoundOut1.Buffers(1)
>
>'Assign the new filename (where Stimulus is name of attribute on
>list that lists sound files)
>SBuffer.Filename = c.GetAttrib("Stimulus")
>
>'Instruct the object to load the sound contents into its internal structures
>SoundOut1SoundBuffer.Load
>
>And here's how to preload images:
>
>
>'Retrieve the image filename from the Context
>Dim strImageFileName As String
>strImageFileName = c.GetAttrib("imagefilename")
>
>'Assign the new filename and instruct the object
>'to load the image
>ImageDisplay1.Filename = strImageFileName
>ImageDisplay1.Load
>
>---
>
>
>However, I didn't succeed in doing the same when the sound file and
>the movie files are subobjects of a slide object. Could somebody
>help me with this? Thank you in advance!
>
>Terhi
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
More information about the Eprime
mailing list