syntax changes

This commit is contained in:
onyx-and-iris 2023-08-01 23:41:23 +01:00
parent 89ee553bb4
commit 209e4298aa
6 changed files with 15 additions and 13 deletions

View File

@ -79,7 +79,7 @@ module Voicemeeter
potato: (Install::OS_BITS == 64) ? Kinds::KindEnum::POTATOX64 : Kinds::KindEnum::POTATO
}
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
CBindings.call(:bind_run_voicemeeter, kinds[kind_id])
sleep(1)

View File

@ -32,13 +32,11 @@ module Voicemeeter
end
end
class PhysicalBus < Base
class PhysicalBus < Base; end
# Represents a Physical Bus
end
class VirtualBus < Base
class VirtualBus < Base; end
# Represents a Virtual Bus
end
class BusEq
include IRemote

View File

@ -2,10 +2,14 @@ require_relative "util"
module Voicemeeter
module Errors
class VMError < StandardError
end
class VMError < StandardError; end
# Base Voicemeeter error class
class VMInstallError < VMError; end
# Errors raised during installation.
class VMCAPIError < VMError
# Errors raised when the C-API returns error codes
attr_reader :fn_name, :code
def initialize(fn_name, code)

View File

@ -50,7 +50,7 @@ module Voicemeeter
else
["Not listening for any events"]
end
logger.info(info_msg.join(" "))
logger.info info_msg.join(" ")
end
private def make_writer_methods(*params)

View File

@ -42,7 +42,7 @@ module Voicemeeter
def goto(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
end
dt = DateTime.parse(timestr)

View File

@ -15,7 +15,7 @@ module Voicemeeter
que << :ldirty if event.ldirty
sleep(@ratelimit)
end
logger.debug("closing producer thread")
logger.debug "closing producer thread"
que << :stop
end
end
@ -30,7 +30,7 @@ module Voicemeeter
loop do
e_from_que = @que.pop
if e_from_que == :stop
logger.debug("closing worker thread")
logger.debug "closing worker thread"
break
end
trigger :on_pdirty if e_from_que == :pdirty && pdirty?