diff --git a/lib/voicemeeter/base.rb b/lib/voicemeeter/base.rb index 31fd64e..852a8a9 100644 --- a/lib/voicemeeter/base.rb +++ b/lib/voicemeeter/base.rb @@ -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) diff --git a/lib/voicemeeter/bus.rb b/lib/voicemeeter/bus.rb index deee6f8..175134b 100644 --- a/lib/voicemeeter/bus.rb +++ b/lib/voicemeeter/bus.rb @@ -32,13 +32,11 @@ module Voicemeeter end end - class PhysicalBus < Base - # Represents a Physical Bus - end + class PhysicalBus < Base; end + # Represents a Physical Bus - class VirtualBus < Base - # Represents a Virtual Bus - end + class VirtualBus < Base; end + # Represents a Virtual Bus class BusEq include IRemote diff --git a/lib/voicemeeter/errors.rb b/lib/voicemeeter/errors.rb index 1c1fc69..d712de3 100644 --- a/lib/voicemeeter/errors.rb +++ b/lib/voicemeeter/errors.rb @@ -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) diff --git a/lib/voicemeeter/event.rb b/lib/voicemeeter/event.rb index e40cf8b..9ff9091 100644 --- a/lib/voicemeeter/event.rb +++ b/lib/voicemeeter/event.rb @@ -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) diff --git a/lib/voicemeeter/recorder.rb b/lib/voicemeeter/recorder.rb index 62518be..c4488d8 100644 --- a/lib/voicemeeter/recorder.rb +++ b/lib/voicemeeter/recorder.rb @@ -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) diff --git a/lib/voicemeeter/worker.rb b/lib/voicemeeter/worker.rb index b87583f..f9f9210 100644 --- a/lib/voicemeeter/worker.rb +++ b/lib/voicemeeter/worker.rb @@ -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?