| Reference | Downloads | Github

Error playing sound: "win32 doesn't support multiple portaudio streams"


I am having an unexpected error when trying to play a sound component on builder… Can anyone help? Apologies in advance if this is something very basic… Following your suggested framework, to explain my problem;

OS: to run on Win7
PsychoPy version (e.g. 1.84.x): 1.90.1
Standard Standalone? (y/n) yes
What are you trying to achieve?: I am trying o play sounds (as sound component) at certain times within a routine in builder; added code component in the same routine to send a trigger coinciding with the onset of the sound.

What did you try to make it work?:

  • the sounds were playing ok in another laptop (win10);
  • i needed to change to this one (win7 laptop) because it is the one we use for testing;
  • in this laptop I added the code to send the triggers in this laptop and also connected with serial port cable that links with EEG system… these were the changes i made in the experiment… however apparently the error is related with sound… (please see below)

What specifically went wrong when you tried that?:

  • I got the error below

I would be very grateful if anyone could provide some insight about what may be wrong…

Many thanks

1 Like

Your experiment contains sounds that are at two different sample rates, which portaudio doesn’t support on windows. You might find that you can fix this by changing to a different audio ‘backend’ in the application settings (specifically it’s possible that pyo supports multiple sound formats) but the much better solution is to go through your sounds and convert them all into a single sample rate. Even on systems that support multiple rates the performance is likely to be reduced.

many thanks for your response! it sorted out the problem