move all require statements into top level file

This commit is contained in:
onyx-and-iris 2023-08-11 00:49:59 +01:00
parent b207e7cc24
commit e989e72e51
22 changed files with 33 additions and 94 deletions

View File

@ -1,4 +1,36 @@
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/errors"
require_relative "voicemeeter/fx"
require_relative "voicemeeter/kinds"
require_relative "voicemeeter/midi"
require_relative "voicemeeter/option"
require_relative "voicemeeter/patch"
require_relative "voicemeeter/recorder"
require_relative "voicemeeter/remote"
require_relative "voicemeeter/strip"
require_relative "voicemeeter/vban"
module Voicemeeter
end

View File

@ -1,13 +1,3 @@
require_relative "install"
require_relative "cbindings"
require_relative "kinds"
require_relative "midi"
require_relative "event"
require_relative "worker"
require_relative "errors"
require_relative "util"
require_relative "logger"
module Voicemeeter
class Base
# Base class for Remote types

View File

@ -1,7 +1,3 @@
require_relative "iremote"
require_relative "kinds"
require_relative "mixins"
module Voicemeeter
module Bus
class Base

View File

@ -1,7 +1,3 @@
require_relative "iremote"
require_relative "meta"
require_relative "logger"
module Voicemeeter
module Button
module ButtonEnum

View File

@ -1,8 +1,3 @@
require_relative "install"
require_relative "errors"
require_relative "util"
require_relative "logger"
module Voicemeeter
module CBindings
# Ruby bindings for the C-API functions

View File

@ -1,6 +1,3 @@
require_relative "iremote"
require_relative "meta"
module Voicemeeter
class Command
include IRemote

View File

@ -1,10 +1,3 @@
require "yaml"
require "pathname"
require_relative "kinds"
require_relative "logger"
require_relative "errors"
module Voicemeeter
module Configs
class TOMLConfBuilder

View File

@ -1,6 +1,3 @@
require_relative "iremote"
require_relative "meta"
module Voicemeeter
class Device
def initialize(remote)

View File

@ -1,5 +1,3 @@
require_relative "util"
module Voicemeeter
module Errors
class VMError < StandardError; end

View File

@ -1,5 +1,3 @@
require_relative "logger"
module Voicemeeter
module Events
module Callback

View File

@ -1,5 +1,3 @@
require_relative "iremote"
module Voicemeeter
class Fx
include IRemote

View File

@ -1,10 +1,3 @@
require "win32/registry"
require "pathname"
require "ffi"
require_relative "logger"
require_relative "errors"
module Voicemeeter
private

View File

@ -1,7 +1,3 @@
require_relative "errors"
require_relative "meta"
require_relative "logger"
module Voicemeeter
module IRemote
# A commmon interface between the base Remote class and extended classes.

View File

@ -1,5 +1,3 @@
require "logger"
module Voicemeeter
module Logging
def logger

View File

@ -1,5 +1,3 @@
require_relative "iremote"
module Voicemeeter
module Option
class Base

View File

@ -1,5 +1,3 @@
require_relative "iremote"
module Voicemeeter
module Patch
class Base

View File

@ -1,10 +1,3 @@
require_relative "iremote"
require_relative "meta"
require_relative "mixins"
require_relative "errors"
require "date"
module Voicemeeter
module Recorder
module FileTypeEnum

View File

@ -1,18 +1,3 @@
require_relative "base"
require_relative "kinds"
require_relative "errors"
require_relative "strip"
require_relative "bus"
require_relative "button"
require_relative "vban"
require_relative "command"
require_relative "recorder"
require_relative "device"
require_relative "fx"
require_relative "patch"
require_relative "option"
require_relative "configs"
module Voicemeeter
module Builder
# Builder module for Remote factories.

View File

@ -1,7 +1,3 @@
require_relative "iremote"
require_relative "kinds"
require_relative "mixins"
module Voicemeeter
module Strip
class Base

View File

@ -1,7 +1,3 @@
require_relative "iremote"
require_relative "meta"
require_relative "errors"
module Voicemeeter
module Vban
class VbanStream

View File

@ -1,5 +1,5 @@
module Voicemeeter
module Version
module VERSION
module_function
def major
@ -22,6 +22,4 @@ module Voicemeeter
to_a.join(".")
end
end
VERSION = Version.to_s
end

View File

@ -1,5 +1,3 @@
require_relative "logger"
module Voicemeeter
module Worker
# Event threads, provides updates to observers