mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
move KindEnum
This commit is contained in:
parent
8943c1bedc
commit
c9c2b906c5
@ -4,6 +4,13 @@ module Voicemeeter
|
||||
|
||||
private
|
||||
|
||||
module KindEnum
|
||||
BASIC = 1
|
||||
BANANA = 2
|
||||
POTATO = 3
|
||||
POTATOX64 = 6
|
||||
end
|
||||
|
||||
KindMap =
|
||||
Data.define(:name, :ins, :outs, :vban, :asio, :insert, :num_buttons) do
|
||||
def phys_in = ins[0]
|
||||
@ -33,13 +40,6 @@ module Voicemeeter
|
||||
|
||||
KIND_MAPS = [basic, banana, potato].to_h { |kind| [kind.name, kind] }
|
||||
|
||||
module KindEnum
|
||||
BASIC = 1
|
||||
BANANA = 2
|
||||
POTATO = 3
|
||||
POTATOX64 = 6
|
||||
end
|
||||
|
||||
public
|
||||
|
||||
def get(kind_id)
|
||||
|
@ -107,8 +107,6 @@ module Voicemeeter
|
||||
end
|
||||
end
|
||||
|
||||
public
|
||||
|
||||
def self.new(kind_id, **)
|
||||
# Interface entry point. Wraps factory class and handles kind errors.
|
||||
kind = Kinds.get(kind_id)
|
||||
|
Loading…
Reference in New Issue
Block a user