mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-24 19:00:49 +00:00
use cache attr reader
This commit is contained in:
parent
f9bf8e59e0
commit
8f985ecb94
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user