Skip to content

Commit d54d14f

Browse files
authored
"default" not correctly checked for speaker option
If default is selected, it should do nothing - but because the condition was set to check for "auto" instead of "default", it gives an error log saying that default doesn't exist on the audio device list.
1 parent 5029631 commit d54d14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/sound/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def setDevice(dev, kind=None):
135135
# a single option
136136
dev = prefs.general['audioDevice']
137137
# is it simply "default" (do nothing)
138-
if dev=='auto' or travisCI:
138+
if dev=='default' or travisCI:
139139
pass # do nothing
140140
elif dev not in backend.getDevices(kind='output'):
141141
devNames = backend.getDevices(kind='output').keys()

0 commit comments

Comments
 (0)