Open ckl33 opened 6 years ago
It would also be nice if there was some method to create and assign saved profiles. For example to press a button or macro key and switch from profile 1 to profile 2 etc.
I think this could be very useful. However this application needs to have a way to match application or process names to currently running processes. And for example if there are 2 instances of the same application then extra handling / complications ensues as to what to do about multiple instances. Or if the application isnt running when audio-router launches. Or if the application matched by the profile crashes. And so on.
Perhaps if audio router were split up into 2 programs, a GUI controller + a background service / daemon. Then it would be implement such a 'profiles' feature. And also have a cmdline interface too?
Having a second executable for the command line may be easier. It may just execute, parse its parameters, send them to the actual application using e.g. IPC and close afterwards. No multi-instance management required.
i did not check the code yet, but if the program implements singleton instance, every call to the exe can be monitored and send messages to the running instance instead of launching a new window. This would allow to use the same exe for gui and following cmd calls to control it
e.g. AudioRouter assign <audio-device#>
This could then open up audio routing to be used in automation much easier.
E.g. assigning audio device automatically based on which monitor a program is open on, just detect which monitor program is open on and then send a command o assign