Sound files not playing

Michiel Spape Michiel.Spape at nottingham.ac.uk
Fri Jul 9 09:09:51 UTC 2010


Hiya,
As I totally follow you when you say it would crash if it couldn't find the files, or if they're wrongly encoded, I'm suspecting it's not playing them, because it skips the SoundObject, or whatnot. Enter a small inline just before the object that plays the file and check whether it actually points correctly; whether the inline is encountered, etc. You could, for example, enter this in the user part of your experiment (alt+5, user tab):
Dim trialnum as integer

Then add this to the *very start of your trialproc:
Trialnum = trialnum + 1

Then add this to just before the soundstimulus:
Debug.Print "Trial: " & trialnum & " should play " & SoundStimulus.Filename

Then, simply check whether trials are skipped and whether all ...should plays... are filled.

Also: do you use any mp3s? I don't know if that causes problems, but you could always test that.
Best,

Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology

-----Original Message-----
From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Hester Duffy
Sent: 08 July 2010 18:09
To: e-prime at googlegroups.com
Subject: Sound files not playing

Hi All,

This may be a stupid question; I'm not a programmer, and am only
really learning e-prime as I go along, so I do apologise if there's an
obvious answer!
I have a program which plays short soundfiles and then asks for
keypress responses to them. However, some of the files are not being
played; I'm getting a short silence instead. The soundfiles exist, are
properly named, and contain the correct content, so I'm fairly sure
they are not the problem. I'm also fairly sure e-prime is finding
them, because it crashes if it's asked to use a file which it can't
find. It seems to be happening intermittently within a block, so I
don't think it's the list properties at fault either.
Any suggestions as to where else the problem might lie? I'm not
getting any compiler or run errors, which would point me in the right
direction!

I'm using v2.0 professional, if that makes any difference.

Many thanks for any pointers!

H

-- 
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 this group at http://groups.google.com/group/e-prime?hl=en.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

-- 
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 this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list