Config file fields ignored?
ed1016 opened this issue · 2 comments
Hi,
I would like to load parameters from a .cfg file using the command line - however I only manage to change the name
field. Other parameters such as device
or samplerate
seem to stick with the default values. I've tried saving a config file and loading it from the GUI, and that doesn't work either. Do you have any idea of what I might be doing wrong?
Here is my config file:
[AudioCapture]
name=test
samplerate=44100
device=Analog (7+8) (Fireface 800)
Also, is it possible to link to the network from the command line? I will need a few recordings running simultaneously, and it'd be easier to start them automatically.
Thank you!
It's expecting device
to be an integer.
https://github.com/labstreaminglayer/App-AudioCapture/blob/master/mainwindow.cpp#L127-L130
If the devices are not always enumerated in the same order then this is admittedly not very useful. Choosing the device by string would be more complicated.
As for linking automatically, that shouldn't be too difficult. I suggest adding another config parameter to the set of configs loaded by cfg. Then at the end of MainWindow::MainWindow
, add something like
if (autolink)
toggleRecording();
I'll try that, thank you!