Currently the _get_audio_dev_num compares AUDIO_DEV_CHOICE to AUDIO_DEVICES in a convoluted manner - this was done with the hope of ultimately parsing the displayed audio devices in the GUI differently to make things a little more visually appealing.
For the time being though, the device list in the GUI needs to be the same as the device list on the back end to facilitate saved settings displaying as selected in the GUI, so leaving as-is in the interests of resolving the parsing issue.
This changes how vrecord parses the output of
arecord
to find capture device numbers for ffmpeg. Should address the issue in https://github.com/amiaopensource/vrecord/issues/753.Currently the
_get_audio_dev_num
compares AUDIO_DEV_CHOICE to AUDIO_DEVICES in a convoluted manner - this was done with the hope of ultimately parsing the displayed audio devices in the GUI differently to make things a little more visually appealing.For the time being though, the device list in the GUI needs to be the same as the device list on the back end to facilitate saved settings displaying as selected in the GUI, so leaving as-is in the interests of resolving the parsing issue.