Play Sound

Description

Play a sound.

If the sound is not playing, it will begin playing immediately. If the sound is paused, it will resume playing from the point at which it was paused. If the sound is playing and not paused, this action does nothing.

Signature

action/play_sound

Required Parameters

sound

Name of the sound

Optional Parameters

start_time

Examples:
now() + 5s
next_frame_time()

Experiment time at which to start playing the sound (microseconds).

If omitted, the sound will start playing immediately.

Placement

Allowed at top level:

No

Allowed parent:

Block, Conditionally Execute Actions (if), List, Protocol, Render Actions, Repeat Actions (while), Schedule Actions, Task System State, Trial, Unconditionally Execute Actions (else), Variable