Hi,
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 :
----
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
Hi,
To start with, i have no idea, but i would suggest, if you must go this way, to look up how to set other subobjects of slides. With all the "set" manoeuvres and tons of code, I try to avoid. But once you're able to attach a different sound to your slide, you should be able to preload it.
1) While it is true that pre-loading can be of use, I believe having a sound object (like a soundout device, etc), will automatically add the preloading bit.
2) have you actually checked to see whether the timing errors are to worry about?
3) it should be possible to have sub-millisecond accurate simultaneous audio and video WHILST they are sequentially placed in the procedure. To do this, just add a sound before your slide, set its duration (and don't use sync), to 0, and make sure it continues playing after the soundout thing stops. If there's a timing error, you can easily add x microseconds of silence at the beginning of the sound file. Presto!
You might get better results from using uncompressed audio and video files, though, and if the timing delay is really stable, you could always make the preceding interval smaller.
Best,
Michiel
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.