Playing quatrophonic sound (4.0 surround-sound) in psychopy

Thanks, the error message helps us get started!

From this, we can inspect the code in PsychoPy itself (backend_sounddevice.py”, line 452) and sure enough, we can see that the PsychoPy code here is assuming the sound to be mono or stereo, so we will certainly need to update this to support more flexible sounds specs.

As a starter, you could change this:

                self.sndArr.shape = [len(thisArray), 2]

to this:

                self.sndArr.shape = [len(thisArray), self.channels]

and I’m sure that will get rid of your current error but

  1. I suspect you will then get to another error, because clearly nobody has made this work in the past (or they would have hit the bug above)
  2. you might find that you fix all the issues within PsychoPy and it still doesn’t work (if the issue is actually in the back-end)

I could potentially get a device and you could send me a demo file to test if you tell me what (exact) device you’re using. No promises when I’d get time though.