mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-21 17:30:49 +00:00
syntax changes
This commit is contained in:
parent
89ee553bb4
commit
209e4298aa
@ -79,7 +79,7 @@ module Voicemeeter
|
|||||||
potato: (Install::OS_BITS == 64) ? Kinds::KindEnum::POTATOX64 : Kinds::KindEnum::POTATO
|
potato: (Install::OS_BITS == 64) ? Kinds::KindEnum::POTATOX64 : Kinds::KindEnum::POTATO
|
||||||
}
|
}
|
||||||
if caller(1..1).first[/`(.*)'/, 1] == "login"
|
if caller(1..1).first[/`(.*)'/, 1] == "login"
|
||||||
logger.debug("Voicemeeter engine running but the GUI appears to be down... launching.")
|
logger.debug "Voicemeeter engine running but the GUI appears to be down... launching."
|
||||||
end
|
end
|
||||||
CBindings.call(:bind_run_voicemeeter, kinds[kind_id])
|
CBindings.call(:bind_run_voicemeeter, kinds[kind_id])
|
||||||
sleep(1)
|
sleep(1)
|
||||||
|
@ -32,13 +32,11 @@ module Voicemeeter
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class PhysicalBus < Base
|
class PhysicalBus < Base; end
|
||||||
# Represents a Physical Bus
|
# Represents a Physical Bus
|
||||||
end
|
|
||||||
|
|
||||||
class VirtualBus < Base
|
class VirtualBus < Base; end
|
||||||
# Represents a Virtual Bus
|
# Represents a Virtual Bus
|
||||||
end
|
|
||||||
|
|
||||||
class BusEq
|
class BusEq
|
||||||
include IRemote
|
include IRemote
|
||||||
|
@ -2,10 +2,14 @@ require_relative "util"
|
|||||||
|
|
||||||
module Voicemeeter
|
module Voicemeeter
|
||||||
module Errors
|
module Errors
|
||||||
class VMError < StandardError
|
class VMError < StandardError; end
|
||||||
end
|
# Base Voicemeeter error class
|
||||||
|
|
||||||
|
class VMInstallError < VMError; end
|
||||||
|
# Errors raised during installation.
|
||||||
|
|
||||||
class VMCAPIError < VMError
|
class VMCAPIError < VMError
|
||||||
|
# Errors raised when the C-API returns error codes
|
||||||
attr_reader :fn_name, :code
|
attr_reader :fn_name, :code
|
||||||
|
|
||||||
def initialize(fn_name, code)
|
def initialize(fn_name, code)
|
||||||
|
@ -50,7 +50,7 @@ module Voicemeeter
|
|||||||
else
|
else
|
||||||
["Not listening for any events"]
|
["Not listening for any events"]
|
||||||
end
|
end
|
||||||
logger.info(info_msg.join(" "))
|
logger.info info_msg.join(" ")
|
||||||
end
|
end
|
||||||
|
|
||||||
private def make_writer_methods(*params)
|
private def make_writer_methods(*params)
|
||||||
|
@ -42,7 +42,7 @@ module Voicemeeter
|
|||||||
|
|
||||||
def goto(timestr)
|
def goto(timestr)
|
||||||
unless /^(2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9])$/.match?(timestr)
|
unless /^(2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9])$/.match?(timestr)
|
||||||
logger.error("goto got: '#{timestr}', but expects a time string in the format 'hh:mm:ss'")
|
logger.error "goto got: '#{timestr}', but expects a time string in the format 'hh:mm:ss'"
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
dt = DateTime.parse(timestr)
|
dt = DateTime.parse(timestr)
|
||||||
|
@ -15,7 +15,7 @@ module Voicemeeter
|
|||||||
que << :ldirty if event.ldirty
|
que << :ldirty if event.ldirty
|
||||||
sleep(@ratelimit)
|
sleep(@ratelimit)
|
||||||
end
|
end
|
||||||
logger.debug("closing producer thread")
|
logger.debug "closing producer thread"
|
||||||
que << :stop
|
que << :stop
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -30,7 +30,7 @@ module Voicemeeter
|
|||||||
loop do
|
loop do
|
||||||
e_from_que = @que.pop
|
e_from_que = @que.pop
|
||||||
if e_from_que == :stop
|
if e_from_que == :stop
|
||||||
logger.debug("closing worker thread")
|
logger.debug "closing worker thread"
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
trigger :on_pdirty if e_from_que == :pdirty && pdirty?
|
trigger :on_pdirty if e_from_que == :pdirty && pdirty?
|
||||||
|
Loading…
Reference in New Issue
Block a user