assign a preloaded soundbuffer to the soundbuffer of a SoundOut object?
David McFarlane
mcfarla9 at msu.edu
Tue Oct 1 13:32:16 UTC 2013
I do not have an answer to your question as
posed, but I would like to pose the
following. What version of E-Prime do you
use? If you use EP2.0.10.x or later, try setting
GeneratePreRun on your Procedure to
TopOfProcedure, then use a separate SoundOut
object for each of your sounds during the
movie. With TopOfProcedure, all the
SoundBuffer.Load operations will take place at
the beginning of the Procedure, not during your
movie playback, and perhaps that would solve your
problem. It would also eliminate the need for messy inline code.
And if you do not use EP2.0.10.x, well, maybe this is your reason to upgrade.
-----
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, 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 10/1/2013 07:36 AM Tuesday, Emiliano DÃez wrote:
>I need to assign a soundbuffer that has been
>preloaded into memory to the soundbuffer of a
>SoundOut object in a procedure. Can this be done???
>
>The point is that my procedure needs to play a
>video playing and at the same time to present
>several sounds (sentences in this case) and
>record reaction times to these sounds. If I use
>mybuffer.load while the video is playing a small
>pause of the video can be seen. So my solution
>was to make an array of soundbuffers and play
>them with inline code. But in this way I lost
>the possibility to record the key responses in
>the way I need (need to know if the keypress,
>that starts with the onset of each sound, has
>been ocurred before or after the sound ends). I
>have found a way to do this, but need to have
>a soundobject and a wait object. So the
>question: is it possible to assign a preloaded
>soundbuffer to the sound buffer of a soundobject?
>
>Thanks all
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/524acf07.3306320a.420c.1699SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
For more options, visit https://groups.google.com/groups/opt_out.
More information about the Eprime
mailing list