Disable sound

David McFarlane mcfarla9 at msu.edu
Tue Mar 12 15:55:19 UTC 2013


Ways to "disable" a SoundSlide on a Slide:

1) Use a sound file of nothing but silence.  (Might as well also make 
that a short sound file, say, 1 ms.)

2) Set sound Volume Control to -10000 (see SoundBuffer.Volume topic 
in the E-Basic Help facility).  (And please do that using an 
attribute reference in the object's Property Pages!)

2) Create a duplicate SlideState on the Slide, and on the duplicate 
SlideState remove the SoundSlide sub-object.  Then use an attribute 
reference in ActiveState, and using inline code (or whatever) set the 
attribute to the sound-disabled SlideState.

I think the first method is fairly popular and straightforward.  I 
don't know how well the second method works.  Of these three, I think 
I prefer the third.

-----
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 3/10/2013 07:14 PM Sunday, Valerio Biscione wrote:
>I have a SoundOut object within a Slide object. I change in some 
>script the directory of the sound-file, but sometime I don't want 
>the SoundOut to play anything at all! Is it possibile to disable the 
>Sound object?
>Thank you!

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.



More information about the Eprime mailing list