<p class="">Hi,</p><p class="">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.)<br></p><p class="">I found a good example of preloading stimuli from <a href="http://imaging.mrc-cbu.cam.ac.uk/imaging/EprimeTiming">http://imaging.mrc-cbu.cam.ac.uk/imaging/EprimeTiming</a> :<br>
</p><p class="">----<br></p><p class="">This example shows how to preload soundfiles: <span class="" id="line-43"></span><span class="" id="line-44"></span></p><p class=""><span class="" id="line-45"></span></p><pre>'Get the soundbuffer from the soundout object
<span class="" id="line-46"></span>Dim SBuffer as SoundBuffer
<span class="" id="line-47"></span>Set SBuffer = SoundOut1.Buffers(1)
<span class="" id="line-48"></span>
<span class="" id="line-49"></span>'Assign the new filename (where Stimulus is name of attribute on list that lists sound files)
<span class="" id="line-50"></span>SBuffer.Filename = c.GetAttrib("Stimulus")
<span class="" id="line-51"></span>
<span class="" id="line-52"></span>'Instruct the object to load the sound contents into its internal structures
<span class="" id="line-53"></span>SoundOut1SoundBuffer.Load 
<span class="" id="line-54"></span></pre><span class="" id="line-55"></span><span class="" id="line-56"></span><p class="">And here’s how to preload images: <span class="" id="line-57"></span><span class="" id="line-58"></span></p>
<p class=""><span class="" id="line-59"></span></p><pre>'Retrieve the image filename from the Context
<span class="" id="line-60"></span>Dim strImageFileName As String
<span class="" id="line-61"></span>strImageFileName = c.GetAttrib("imagefilename")
<span class="" id="line-62"></span>
<span class="" id="line-63"></span>'Assign the new filename and instruct the object
<span class="" id="line-64"></span>'to load the image
<span class="" id="line-65"></span>ImageDisplay1.Filename = strImageFileName
<span class="" id="line-66"></span>ImageDisplay1.Load<br><br>---<br><br></pre><p class="">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!<br>
</p><pre>Terhi<br></pre>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />
For more options, visit <a href="https://groups.google.com/groups/opt_out">https://groups.google.com/groups/opt_out</a>.<br />
 <br />
 <br />