voicemeeter_api_ruby 4.6.0 → 4.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 853191cf2f0496441c9db529fb2863f29f769088107e704f779cd3fa602baf4a
4
- data.tar.gz: ac9610c2aa4bf7a3319dbd7677774b5b52d579970d58412447357e9d67443830
3
+ metadata.gz: 239598e09c64eec66267e8e9858e5dd73a105849c25853dc0135e0f519765ea9
4
+ data.tar.gz: 85197e57ca02c6101316657c4ae5bead86868292da33bac04dd7e6e50cb03329
5
5
  SHA512:
6
- metadata.gz: 4dddc3aaa0fb7e600c489b0c0773a542447e9ff6fe1e839783b45f8766742a21d1354846daf5a2a3ee08f43ee85fc2272326ed6a696201eaa741f6b5002a1299
7
- data.tar.gz: ab40474cf35aede927799ce48465a482269345803ec79692ccbe0da6bb082368545000a8622286530c08d9a8764b3e983c91383c89caf603d3432799a6d4fda0
6
+ metadata.gz: 513f5db541020e4e51247718821e522944bef450e3f757002d7787c072e7d5938a72b8e1ec34d4e824acae330b5c356dc727f02d4acb8782fbfffc7e681377f9
7
+ data.tar.gz: addb2cd633eaa31bfe80775016bef56dc8521c489ebe46ff9feb63b4d9183bf0fddbbbff6831092de3bf5f8a3f2d1909db41def8a5d22856e7cd49b64fab8bda
data/README.md CHANGED
@@ -25,14 +25,13 @@ For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
25
25
 
26
26
  ### Bundler
27
27
 
28
- Put this in your Gemfile:
29
-
30
- `gem 'voicemeeter_api_ruby'`
28
+ ```
29
+ bundle add 'voicemeeter_api_ruby'
30
+ bundle install
31
+ ```
31
32
 
32
33
  ### Gem
33
34
 
34
- Install voicemeeter_api_ruby gem from your console
35
-
36
35
  `gem install 'voicemeeter_api_ruby'`
37
36
 
38
37
  ## `Use`
@@ -257,6 +256,10 @@ puts vm.strip[0].device.name
257
256
  vm.bus[0].device.asio = "Audient USB Audio ASIO Driver"
258
257
  ```
259
258
 
259
+ strip|bus device parameters are defined for physical channels only.
260
+
261
+ name, sr are read only. wdm, ks, mme, asio are write only.
262
+
260
263
  ### Macrobuttons
261
264
 
262
265
  Three modes defined: state, stateonly and trigger.
@@ -496,9 +499,9 @@ Or add, remove an array of events.
496
499
 
497
500
  The following methods are available:
498
501
 
499
- - `add()`
500
- - `remove()`
501
- - `get()`
502
+ - `add(events)`
503
+ - `remove(events)`
504
+ - `get`
502
505
 
503
506
  example:
504
507
 
@@ -46,13 +46,13 @@ module Voicemeeter
46
46
  end
47
47
 
48
48
  def to_s
49
- "Voicemeeter #{@kind.name.capitalize}"
49
+ "Voicemeeter #{@kind}"
50
50
  end
51
51
 
52
52
  def login
53
53
  @@cdll.call(:login)
54
54
  clear_polling
55
- LOGGER.info("Logged into Voiceemeter #{self}")
55
+ LOGGER.info("Logged into #{self}")
56
56
  rescue CAPIErrors => error
57
57
  case
58
58
  when error.value == 1
@@ -67,7 +67,7 @@ module Voicemeeter
67
67
  clear_polling
68
68
  sleep(0.1)
69
69
  @@cdll.call(:logout)
70
- LOGGER.info("Logged out of Voiceemeter #{self}")
70
+ LOGGER.info("Logged out of #{self}")
71
71
  end
72
72
 
73
73
  def type
@@ -8,7 +8,7 @@ module Voicemeeter
8
8
  end
9
9
 
10
10
  def to_s
11
- "#{self.class.name.split("::").last}#{@index}"
11
+ "#{self.class.name.split("::").last}#{@index}#{@remote.kind}"
12
12
  end
13
13
 
14
14
  def getter(**kwargs)
@@ -10,7 +10,7 @@ module Voicemeeter
10
10
  end
11
11
 
12
12
  def to_s
13
- "#{self.class.name.split("::").last}#{@index}"
13
+ "#{self.class.name.split("::").last}"
14
14
  end
15
15
 
16
16
  def info(msg = nil)
@@ -14,7 +14,7 @@ module Voicemeeter
14
14
  end
15
15
 
16
16
  def to_s
17
- "#{self.class.name.split("::").last}#{@index}"
17
+ "#{self.class.name.split("::").last}#{@index}#{@remote.kind}"
18
18
  end
19
19
 
20
20
  def getter(param, is_string = false)
@@ -5,7 +5,13 @@ module Voicemeeter
5
5
  "
6
6
  attr_reader :kind_map, :kinds_all
7
7
 
8
- Kind = Struct.new(:name, :layout)
8
+ Kind =
9
+ Struct.new(:name, :layout) do
10
+ def to_s
11
+ "#{name.capitalize}"
12
+ end
13
+ end
14
+
9
15
  basic =
10
16
  Kind.new(
11
17
  "basic",
@@ -7,7 +7,7 @@ module Voicemeeter
7
7
  end
8
8
 
9
9
  def to_s
10
- "#{self.class.name.split("::").last}#{@index}"
10
+ "#{self.class.name.split("::").last}"
11
11
  end
12
12
 
13
13
  def get(key)
@@ -40,14 +40,25 @@ module Voicemeeter
40
40
  module Xy
41
41
  include Channel_Meta_Functions
42
42
 
43
- def initialize(remote, i)
44
- super
45
- self.make_accessor_float :pan_x,
46
- :pan_y,
47
- :color_x,
48
- :color_y,
49
- :fx_x,
50
- :fx_y
43
+ module Pan
44
+ def initialize(remote, i)
45
+ super
46
+ self.make_accessor_float :pan_x, :pan_y
47
+ end
48
+ end
49
+
50
+ module Color
51
+ def initialize(remote, i)
52
+ super
53
+ self.make_accessor_float :color_x, :color_y
54
+ end
55
+ end
56
+
57
+ module Fx
58
+ def initialize(remote, i)
59
+ super
60
+ self.make_accessor_float :fx_x, :fx_y
61
+ end
51
62
  end
52
63
  end
53
64
 
@@ -39,7 +39,9 @@ module Voicemeeter
39
39
  end
40
40
 
41
41
  class PhysicalStrip < Strip
42
- include Mixin::Xy
42
+ include Mixin::Xy::Pan
43
+ include Mixin::Xy::Color
44
+ include Mixin::Xy::Fx
43
45
  include Mixin::Fx
44
46
 
45
47
  def initialize(remote, i)
@@ -51,6 +53,7 @@ module Voicemeeter
51
53
  end
52
54
 
53
55
  class VirtualStrip < Strip
56
+ include Mixin::Xy::Pan
54
57
  include Mixin::Apps
55
58
 
56
59
  def initialize(remote, i)
@@ -11,7 +11,7 @@ module Voicemeeter
11
11
  end
12
12
 
13
13
  def patch
14
- 0
14
+ 1
15
15
  end
16
16
 
17
17
  def to_a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voicemeeter_api_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - onyx_online
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-17 00:00:00.000000000 Z
11
+ date: 2022-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi