Present visual and auditory stimuli Simultaneously

Dear experts,
 
We are going to make a task that can present visual and auditory stimuli simultaneously.
The visula stimulus is that the target object moves randomly on the display.
We would like to give the auditory stimuli while the target moves on the display.
Our problem is that the target stops during the auditory stimulus are presented (for 50 msec).
We would like to give the auditory stimuli without stopping the target.
 
Could anyone help us in order to solve the problem ?
 
Sincerely yours,
 
***************************************************
Hideki MOCHIZUKI
 
Department of Animal Models for Human Disease,
National Institute of Neuroscience,
National Center of Neurology and Psychiatry
ADRESS: 4-1-1, Ogawahigashi-cho, Kodaira-shi, Tokyo, Japan
E-mail: motiz@...
TEL:+81-42-341-2711
***************************************************
 
Hi Hideki

it looks like you're using some sound playing command which halts the
code until the sound is played and then continues. What command are
you using? If you're using wavplay this is exactly what happens. Its
default playing mode is the so-called 'sync' method which waits for
the sound to stop. So either give the extra input argument 'async' to
the wavplay command or use the SND or SOUND command both of which
don't wait for the playing sound to stop as far as my knowledge goes.

Jeroen Benjamins

--- In psychtoolbox@yahoogroups.com, "Hideki Mochizuki" <motiz@n...>
wrote:
> Dear experts,
>
> We are going to make a task that can present visual and auditory
stimuli
> simultaneously.
> The visula stimulus is that the target object moves randomly on the
display.
> We would like to give the auditory stimuli while the target moves
on the
> display.
> Our problem is that the target stops during the auditory stimulus
are
> presented (for 50 msec).
> We would like to give the auditory stimuli without stopping the
target.
>
> Could anyone help us in order to solve the problem ?
>
> Sincerely yours,
>
> ***************************************************
> Hideki MOCHIZUKI
>
> Department of Animal Models for Human Disease,
> National Institute of Neuroscience,
> National Center of Neurology and Psychiatry
> ADRESS: 4-1-1, Ogawahigashi-cho, Kodaira-shi, Tokyo, Japan
> E-mail: motiz@n...
> TEL:+81-42-341-2711
> ***************************************************
Hi Jeroen
 
The probelem was solved by changing command from "wavplay" to "sound". 
Thank you for giving us advice.
 
Hideki Mochizuki
 
>Hi Hideki

>it looks
like you're using some sound playing command which halts the
>code until
the sound is played and then continues. What command are
>you using? If
you're using wavplay this is exactly what happens. Its
>default playing
mode is the so-called 'sync' method which waits for
>the sound to stop. So
either give the extra input argument 'async' to
>the wavplay command or
use the SND or SOUND command both of which
>don't wait for the playing
sound to stop as far as my knowledge goes.

>Jeroen
Benjamins