Hey,
After switching to PTB audio as recommended (without it it works fine), some audio won’t play and I get this error:
PTB-ERROR: Audio device 2 has 1 output channels, but provided matrix has non-matching number of 2 columns.
Error in function FillBuffer: Usage error
Number of columns of audio data matrix doesn’t match number of output channels of selected audio device.
My code is:
import os
from psychopy import visual, core, prefs
prefs.hardware['audioLib'] = ['PTB']
from psychopy import sound
print(prefs)
win = visual.Window([1024, 768], monitor=0, units='norm', color='#646464')
slot_machine_ding_sound = sound.Sound(os.path.join(slot_machine_path, 'Sound02 Ding.wav'))
slot_machine_handle_sound = sound.Sound(os.path.join(slot_machine_path, 'Sound03 Handle.wav'))
slot_machine_wheels_sound = sound.Sound(os.path.join(slot_machine_path, 'Sound05 Wheels.wav'))
Any help will be appreciated. thank you !