Skip to content
Permalink
Browse files

Updated Channel field to the correct valType: int (#2425)

Wrong valType caused ExpBuilder to generate wrong attribute for AdvAudioCapture
  • Loading branch information...
wilfrid-li authored and peircej committed Apr 30, 2019
1 parent a58ade0 commit dadb9be2583012715409d1a8aa59b495815cd474
@@ -56,7 +56,7 @@ def __init__(self, exp, parentName, name='mic_1',

msg = _translate("Enter a channel number. Default value is 0. If unsure, run 'sound.backend.get_input_devices()' to locate the system's selected device/channel.")

self.params['channel'] = Param(channel, valType='str', hint=msg, label=_localized['channel'])
self.params['channel'] = Param(channel, valType='int', hint=msg, label=_localized['channel'])
def writeStartCode(self, buff):
# filename should have date_time, so filename_wav should be unique
buff.writeIndented("wavDirName = filename + '_wav'\n")
@@ -2362,7 +2362,7 @@ MicrophoneComponent.channel.readOnly:False
MicrophoneComponent.channel.staticUpdater:None
MicrophoneComponent.channel.updates:None
MicrophoneComponent.channel.val:0
MicrophoneComponent.channel.valType:str
MicrophoneComponent.channel.valType:int
MicrophoneComponent.disabled.default:False
MicrophoneComponent.disabled.allowedTypes:[]
MicrophoneComponent.disabled.allowedUpdates:None

0 comments on commit dadb9be

Please sign in to comment.
You can’t perform that action at this time.