Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
BF: sounddevice backend raises exception in Python2
  • Loading branch information
hsogo committed Jan 18, 2019
1 parent b8778f2 commit c1317b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/sound/backend_sounddevice.py
Expand Up @@ -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:
Expand Down

0 comments on commit c1317b6

Please sign in to comment.