voicemeeter_api_ruby 4.3.0 → 4.3.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: 4cc1526b0ea929bc7acecca20df4f497aeaacd1a7cca3549369304dec5599dc7
4
- data.tar.gz: 8b4acc90968eff552c7b86194b45c513ca3d0fe6e9c1b29ca0a448f67f0fc877
3
+ metadata.gz: dfec081c74f1dbdd1b315bd0c3aeaff0b80da1e520b995c584d087f2753cb56e
4
+ data.tar.gz: 5e40c74ebc5d8aef7f153f278b3737387f43748604d073d35a308fa817a21627
5
5
  SHA512:
6
- metadata.gz: 8ca033d3cfefdfd1120044cf8a44b105ca29f3eb32ae623cdd91a6b9bad98e2ccf7add3dae67c0407b2ff647eebb070429dfe9b85472ae2daa146ff945f528e9
7
- data.tar.gz: f2fae61b46e6596337bbb9915d86c9e653cd2e145a3405d4f2ba9a1ac96f6a0be472f8012610aca237911e5935aa22a29ccc41ec646e196d86296d3a0ae15177
6
+ metadata.gz: 189d225992622d19c21d7eb6a3f81e08db74b5b5556b7f8794bcc3fe4c0efe17393fbd6897bae1c869d1b4ebef9eafae1433827a1ecafecb393e0349260bcfb8
7
+ data.tar.gz: 933d748eb4ca2bcae4081a35c4b3cc9258b08defa79fca143c0caced8ec3c00773c55acc086f71f36c9ede579515dca945dcd26de335ed825dedd8a2529294a3
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
+ [![Gem Version](https://badge.fury.io/rb/voicemeeter_api_ruby.svg)](https://badge.fury.io/rb/voicemeeter_api_ruby)
2
+ ![Gem Downloads](https://ruby-gem-downloads-badge.herokuapp.com/voicemeeter_api_ruby?type=total&color=red)
1
3
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/onyx-and-iris/voicemeeter-api-ruby/blob/dev/LICENSE)
2
4
  [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/plugin-ruby)
3
5
  ![tests: failed count](https://img.shields.io/badge/dynamic/json?color=blue&label=tests&query=summary.failure_count&suffix=%20failed&url=https%3A%2F%2Fraw.githubusercontent.com%2Fonyx-and-iris%2Fvoicemeeter-api-ruby%2Fdev%2Fspec%2Frspec.json)
4
- [![Gem Version](https://badge.fury.io/rb/voicemeeter_api_ruby.svg)](https://badge.fury.io/rb/voicemeeter_api_ruby)
5
- ![](https://ruby-gem-downloads-badge.herokuapp.com/voicemeeter_api_ruby?type=total&color=red)
6
6
 
7
7
  # Ruby Wrapper for Voicemeeter API
8
8
 
@@ -283,10 +283,10 @@ vm.recorder.play
283
283
  vm.recorder.stop
284
284
 
285
285
  # Enable loop play
286
- vm.recorder.loop = True
286
+ vm.recorder.loop = true
287
287
 
288
288
  # Disable recorder out channel B2
289
- vm.recorder.B2 = False
289
+ vm.recorder.B2 = false
290
290
 
291
291
  # filepath as string
292
292
  vm.recorder.load('C:\music\mytune.mp3')
@@ -319,7 +319,7 @@ example:
319
319
  vm.vban.enable
320
320
 
321
321
  # turn on vban instream 0
322
- vm.vban.instream[0].on = True
322
+ vm.vban.instream[0].on = true
323
323
 
324
324
  # set bit property for outstream 3 to 24
325
325
  vm.vban.outstream[3].bit = 24
@@ -81,10 +81,6 @@ module Voicemeeter
81
81
  end
82
82
  end
83
83
 
84
- def make_channel_props(num_A, num_B)
85
- (1..(num_A + num_B)).map { |i| i <= num_A ? "A#{i}" : "B#{i - num_A}" }
86
- end
87
-
88
84
  def make_action_prop(*params)
89
85
  params.each do |param|
90
86
  define_singleton_method("#{param}") { self.setter("#{param}", 1) }
@@ -22,6 +22,19 @@ module Voicemeeter
22
22
  end
23
23
  end
24
24
 
25
+ module Outputs
26
+ include Channel_Meta_Functions
27
+ def initialize(remote, i = nil)
28
+ super
29
+ num_A, num_B = remote.kind.layout[:bus].values
30
+ channels =
31
+ (1..(num_A + num_B)).map do |i|
32
+ i <= num_A ? "A#{i}" : "B#{i - num_A}"
33
+ end
34
+ self.make_accessor_bool *channels
35
+ end
36
+ end
37
+
25
38
  module Xy
26
39
  include Channel_Meta_Functions
27
40
 
@@ -6,13 +6,11 @@ module Voicemeeter
6
6
  "
7
7
  Concrete Recorder class
8
8
  "
9
+ include Mixin::Outputs
9
10
 
10
11
  def initialize(remote)
11
12
  super
12
13
  self.make_action_prop :play, :stop, :record, :ff, :rew
13
-
14
- num_A, num_B = remote.kind.layout[:bus].values
15
- self.make_accessor_bool *make_channel_props(num_A, num_B)
16
14
  end
17
15
 
18
16
  def identifier
@@ -7,6 +7,7 @@ module Voicemeeter
7
7
  Concrete Strip class
8
8
  "
9
9
  include Channel_Meta_Functions
10
+ include Mixin::Outputs
10
11
  include Mixin::Fades
11
12
 
12
13
  attr_accessor :gainlayer, :levels
@@ -28,9 +29,6 @@ module Voicemeeter
28
29
  self.make_accessor_int :limit
29
30
  self.make_accessor_string :label
30
31
 
31
- num_A, num_B = remote.kind.layout[:bus].values
32
- self.make_accessor_bool *make_channel_props(num_A, num_B)
33
-
34
32
  @gainlayer = (0...8).map { |j| GainLayer.new(remote, i, j) }
35
33
  @levels = StripLevels.new(remote, i)
36
34
  end
@@ -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.3.0
4
+ version: 4.3.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-07-29 00:00:00.000000000 Z
11
+ date: 2022-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi