mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 23:00:48 +00:00
added delay reader method
This commit is contained in:
parent
9dfda173da
commit
721fb53012
@ -14,15 +14,17 @@ module Voicemeeter
|
|||||||
include Worker
|
include Worker
|
||||||
include Util::Cache
|
include Util::Cache
|
||||||
|
|
||||||
attr_reader :kind, :midi, :event, :running, :callback
|
attr_reader :kind, :midi, :event, :running, :callback, :delay
|
||||||
attr_accessor :cache
|
attr_accessor :cache
|
||||||
|
|
||||||
RATELIMIT = 0.033
|
RATELIMIT = 0.033
|
||||||
|
DELAY = 0.001
|
||||||
|
|
||||||
def initialize(kind, **kwargs)
|
def initialize(kind, **kwargs)
|
||||||
@kind = kind
|
@kind = kind
|
||||||
@sync = kwargs[:sync] || false
|
@sync = kwargs[:sync] || false
|
||||||
@ratelimit = kwargs[:ratelimit] || RATELIMIT
|
@ratelimit = kwargs[:ratelimit] || RATELIMIT
|
||||||
|
@delay = kwargs[:delay] || DELAY
|
||||||
@midi = Midi.new
|
@midi = Midi.new
|
||||||
@event =
|
@event =
|
||||||
Events::Tracker.new(
|
Events::Tracker.new(
|
||||||
|
Loading…
Reference in New Issue
Block a user