Permalink
Browse files

BF: sounddevice backend raises exception in Python2

  • Loading branch information...
hsogo committed Jan 18, 2019
1 parent b8778f2 commit c1317b6b6355eef0db0d4ec6dd660252d2aaa232
Showing with 1 addition and 1 deletion.
  1. +1 −1 psychopy/sound/backend_sounddevice.py
@@ -189,7 +189,7 @@ def callback(self, toSpk, blockSize, timepoint, status):
t0 = time.time()
self.frameN += 1
toSpk.fill(0)
for thisSound in self.sounds.copy():
for thisSound in list(self.sounds): # copy (Py2 doesn't have list.copy)
dat = thisSound._nextBlock() # fetch the next block of data
dat *= thisSound.volume # Set the volume block by block
if self.channels == 2 and len(dat.shape) == 2:

0 comments on commit c1317b6

Please sign in to comment.