voicemeeter-rb/lib/voicemeeter.rb

60 lines
1.5 KiB
Ruby
Raw Normal View History

require "yaml"
require "pathname"
require "win32/registry"
require "ffi"
require "date"
require "logger"
require_relative "voicemeeter/logger"
require_relative "voicemeeter/worker"
require_relative "voicemeeter/event"
require_relative "voicemeeter/util"
require_relative "voicemeeter/meta"
require_relative "voicemeeter/iremote"
require_relative "voicemeeter/mixins"
require_relative "voicemeeter/install"
require_relative "voicemeeter/base"
require_relative "voicemeeter/bus"
require_relative "voicemeeter/button"
require_relative "voicemeeter/cbindings"
require_relative "voicemeeter/command"
require_relative "voicemeeter/configs"
require_relative "voicemeeter/device"
require_relative "voicemeeter/fx"
require_relative "voicemeeter/kinds"
require_relative "voicemeeter/midi"
require_relative "voicemeeter/option"
require_relative "voicemeeter/patch"
require_relative "voicemeeter/recorder"
2023-07-07 02:38:13 +01:00
require_relative "voicemeeter/remote"
require_relative "voicemeeter/strip"
require_relative "voicemeeter/vban"
2023-07-07 02:38:13 +01:00
2023-08-11 02:18:29 +01:00
require_relative "voicemeeter/version"
2023-07-07 02:38:13 +01:00
module Voicemeeter
2023-08-11 02:18:29 +01:00
module Errors
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)
@fn_name = fn_name
@code = code
super(message)
end
def message
"#{fn_name} returned #{code}"
end
end
end
2023-07-07 02:38:13 +01:00
end