use cache attr reader

This commit is contained in:
onyx-and-iris 2023-08-06 18:02:48 +01:00
parent f9bf8e59e0
commit 8f985ecb94

View File

@ -26,9 +26,9 @@ module Voicemeeter
def init_worker(que) def init_worker(que)
logger.info "Listening for #{event.get.join(", ")} events" logger.info "Listening for #{event.get.join(", ")} events"
@cache[:strip_level], @cache[:bus_level] = _get_levels cache[:strip_level], cache[:bus_level] = _get_levels
@cache[:strip_comp] = Array.new(kind.num_strip_levels, false) cache[:strip_comp] = Array.new(kind.num_strip_levels, false)
@cache[:bus_comp] = Array.new(kind.num_bus_levels, false) cache[:bus_comp] = Array.new(kind.num_bus_levels, false)
Thread.new do Thread.new do
Thread.current.name = "worker" Thread.current.name = "worker"
while (event = que.pop) while (event = que.pop)