diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-09-12 19:50:56 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-09-12 19:50:56 -0700 |
commit | 44b32d60501cc5320de4b34d34c9de3d5f4c11bf (patch) | |
tree | 051d3289c4ecce2146d5785b0619c6c5f606da0b /src/modules/montage/montage.c | |
parent | c829689a9b285db0243880d020a727f664d41e74 (diff) |
modules/rtv: implement context_duration setting
This renames rtv_channel_t to rtv_module_t and modules to
channels in various places, which arguably should have been in a
separate commit but I'm not up for separating that out at the
moment.
Fundamentally what's happening is every channel is getting its
own context which may persist across channel switches, this
allows watching a variety of channels in a stateful manner before
they get their contexts recreated with re-randomized settings.
For modules without settings it's not terribly interesting, and
I'm thinking modules should probably start deriving some of their
state more directly from the global ticks rather than their own
per-context counters and timers. That way even when their
contexts get recreated with re-randomized settings, there can be
some continuity for ticks-derived state. Deriving position for
instance mathematically from ticks would allow things to be
located continuously despite having their contexts and even
settings changed, which may be interesting.
Anyhow, if you want the previous behavior where contexts are
always recreated on channel switch, just set the value to be
contxt_duration equal to duration.
Diffstat (limited to 'src/modules/montage/montage.c')
0 files changed, 0 insertions, 0 deletions