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 +4 -4
- data/README.md +5 -5
- data/lib/voicemeeter/meta.rb +0 -4
- data/lib/voicemeeter/mixin.rb +13 -0
- data/lib/voicemeeter/recorder.rb +1 -3
- data/lib/voicemeeter/strip.rb +1 -3
- data/lib/voicemeeter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfec081c74f1dbdd1b315bd0c3aeaff0b80da1e520b995c584d087f2753cb56e
|
4
|
+
data.tar.gz: 5e40c74ebc5d8aef7f153f278b3737387f43748604d073d35a308fa817a21627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
286
|
+
vm.recorder.loop = true
|
287
287
|
|
288
288
|
# Disable recorder out channel B2
|
289
|
-
vm.recorder.B2 =
|
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 =
|
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
|
data/lib/voicemeeter/meta.rb
CHANGED
@@ -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) }
|
data/lib/voicemeeter/mixin.rb
CHANGED
@@ -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
|
|
data/lib/voicemeeter/recorder.rb
CHANGED
@@ -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
|
data/lib/voicemeeter/strip.rb
CHANGED
@@ -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
|
data/lib/voicemeeter/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|