mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-15 15:00:46 +00:00
switch to :"" syntax
This commit is contained in:
parent
85dce0061c
commit
a3523eeb40
@ -14,7 +14,7 @@ module Voicemeeter
|
|||||||
ffi_convention :stdcall
|
ffi_convention :stdcall
|
||||||
|
|
||||||
private_class_method def self.attach_function(c_name, args, returns)
|
private_class_method def self.attach_function(c_name, args, returns)
|
||||||
ruby_name = "bind_#{Util::String.snakecase(c_name.to_s.delete_prefix("VBVMR_"))}".to_sym
|
ruby_name = :"bind_#{Util::String.snakecase(c_name.to_s.delete_prefix("VBVMR_"))}"
|
||||||
super(ruby_name, c_name, args, returns)
|
super(ruby_name, c_name, args, returns)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@ module Voicemeeter
|
|||||||
module Configs
|
module Configs
|
||||||
class TOMLConfBuilder
|
class TOMLConfBuilder
|
||||||
def self.run(kind)
|
def self.run(kind)
|
||||||
aouts = (0...kind.phys_out).to_h { |i| ["A#{i + 1}".to_sym, false] }
|
aouts = (0...kind.phys_out).to_h { |i| [:"A#{i + 1}", false] }
|
||||||
bouts = (0...kind.virt_out).to_h { |i| ["B#{i + 1}".to_sym, false] }
|
bouts = (0...kind.virt_out).to_h { |i| [:"B#{i + 1}", false] }
|
||||||
strip_bools = %i[mute mono solo].to_h { |param| [param, false] }
|
strip_bools = %i[mute mono solo].to_h { |param| [param, false] }
|
||||||
gain = [:gain].to_h { |param| [param, 0.0] }
|
gain = [:gain].to_h { |param| [param, 0.0] }
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ module Voicemeeter
|
|||||||
virt_strip =
|
virt_strip =
|
||||||
(kind.phys_in...kind.phys_in + kind.virt_in).to_h do |i|
|
(kind.phys_in...kind.phys_in + kind.virt_in).to_h do |i|
|
||||||
[
|
[
|
||||||
"strip-#{i}".to_sym,
|
:"strip-#{i}",
|
||||||
{**aouts, **bouts, **strip_bools, **gain, **overrides}
|
{**aouts, **bouts, **strip_bools, **gain, **overrides}
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
@ -32,7 +32,7 @@ module Voicemeeter
|
|||||||
bus_bools = %i[mute mono].to_h { |param| [param, false] }
|
bus_bools = %i[mute mono].to_h { |param| [param, false] }
|
||||||
bus =
|
bus =
|
||||||
(0...kind.num_bus).to_h do |i|
|
(0...kind.num_bus).to_h do |i|
|
||||||
["bus-#{i}".to_sym, {**bus_bools, **gain, **eq}]
|
[:"bus-#{i}", {**bus_bools, **gain, **eq}]
|
||||||
end
|
end
|
||||||
|
|
||||||
{**phys_strip, **virt_strip, **bus}
|
{**phys_strip, **virt_strip, **bus}
|
||||||
|
Loading…
Reference in New Issue
Block a user