-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce the amount of silence when repatching #29
Comments
What about if instead of immediately disconnecting and re-making connections, we build up an object which maps all the connections which need to be made, start relevant ladspa, then make just those new connections? Then it would be:
|
Something like this:
|
This would also require some way of knowing what kind of connections we are trying to make (ladspa -> client, client -> ladspa etc..) |
This from
|
Actually, of course that won't work, as clients don't necessarily have the same position when repatching. Still, this might be a good approach:
|
Yeah, definitely, have had this as a vague long-term goal for ages - would be nice as we could then write unit tests against the thing that creates the connection maps. But, could be a lot of work to refactor this way? |
Ah, yeah, that's a good point - with the current patching strategy, maybe most people are going to get repatched most times that it runs - so there's no point in doing anything more sophisticated than disconnect everyone & reconnect everyone. I think I was originally thinking the patcher would be constantly running (like every 10sec) so not repatching would be important, but now we have a (seemingly reliable) trigger mechanism to repatch on client connection we don't need that. |
I don't know if it would be too much work to implement. Almost all connections are made in |
Yeh, it may well not be worth it, but if we thought it was important (maybe we find the silences annoying when in sessions) then as we can now reconfigure our panning positions easily we could have a go at trying to keep clients in the same place. Guess this is one for the later pile though... |
Just experimented with doing this:
and it works really well. The silence between re-patching is basically gone, you can still hear a bit a a click when the patching happens, but that's all. Can't implement this until the code for one client is refactored, but good to know it works. |
When a new client joins, there is a brief moment of silence while the patcher runs. Maybe we're doing
and maybe we could do this (with shorter silence):
ref. #25 (comment)
The text was updated successfully, but these errors were encountered: