wireplumber/src/scripts
George Kiagiadakis a7d0dacd12 state-routes: fix restoring volumes when a Route is changed manually
When a manual change is applied, the store-or-restore-routes is the only
hook that gets executed for this event. In order to be able to test if a
route was changed, we need to reset all of them to 'active = false',
record the previous value of 'active' and test their difference.

Testing only the 'active' variable (and discarding 'prev_active') sounds
tempting here, but if a route is changed back and forth (from A to B
and back to A), there is nothing to reset the 'active' variable of A
when it gets deactivated and it will appear as previously active on
the second switch.

Related to: #551
2024-01-08 12:21:27 +02:00
..
client access-default: do not crash if the rules section is not defined in the config 2023-11-15 15:44:01 +02:00
default-nodes state: add save_after_timeout() method to replace all custom timeout code 2024-01-04 16:38:33 +02:00
device state-routes: fix restoring volumes when a Route is changed manually 2024-01-08 12:21:27 +02:00
lib state: add save_after_timeout() method to replace all custom timeout code 2024-01-04 16:38:33 +02:00
linking scripts: s/putils/lutils/g ("policy" utils -> "linking" utils) 2024-01-03 11:10:56 +02:00
monitors scripts: tidy up monitor settings and config options 2023-12-09 15:52:24 +02:00
node state: add save_after_timeout() method to replace all custom timeout code 2024-01-04 16:38:33 +02:00
fallback-sink.lua scripts: don't use 'local' for file-wide scoped variables 2023-09-29 23:13:28 +03:00
intended-roles.lua scripts: don't use 'local' for file-wide scoped variables 2023-09-29 23:13:28 +03:00
metadata.lua scripts: merge metadata.lua and filters-metadata.lua 2023-11-07 22:07:04 +02:00
policy-dsp.lua policy-dsp: add ability to hide parent nodes 2023-10-30 20:11:47 +00:00
sm-objects.lua scripts: add new sm-objects script 2023-11-22 08:38:36 +00:00