Reply To: Audio stimuli don't play on phones

PennController for IBEX Forums Support Audio stimuli don't play on phones Reply To: Audio stimuli don't play on phones

#6901
Jeremy
Keymaster

Hi,

It does play the sound file on my Android phone. Did you try it on an iPhone?

Also, I don’t know if you have more commands in your trial after that last wait command, but if you don’t, then you should not hear the audio: in that case, the behavior on your phone/ipad would turn out to be the correct one.

I’m not sure why you print and then immediately remove the Audio element, and then make it play as a callback. Wouldn’t this purely linear code achieve what you need?

newButton("click")
    .print()
    .wait()
    .remove()
,
newAudio("py22","py22.wav")
    .play()
    .wait()

Jeremy