Playing two sounds at the same time

My paradigm contains two sounds, one very long background sound, and the other is a series of targets, which are generated and played based on the performance of the participant to previous targets. This is adaptive tracking, basically, the sound for the next target will be dependent on the history of the previous targets. But the background sound is continuously played during the whole session. I wonder if there is a way to play the background sound while inserting new targets in an online manner. Thank you so much in advance for any thoughts/help!

That’s simple by use of PsychPortAudio’s audio slave functionality. BasicAMAndMixScheduleDemo.m contains all the bits needed to build a script that does this. If you need more help → help PsychPaidSupportAndServices for up to 30 minutes of paid support.
-mario

1 Like

Thanks so much!! It works.