File tree 7 files changed +4
-20
lines changed
7 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.21)
2
- project (venmic LANGUAGES CXX VERSION 4 .0.2 )
2
+ project (venmic LANGUAGES CXX VERSION 5 .0.0 )
3
3
4
4
# --------------------------------------------------------------------------------------------------------
5
5
# Library options
Original file line number Diff line number Diff line change @@ -59,9 +59,6 @@ The Rest-Server exposes three simple endpoints
59
59
The setting ` only_default_speakers ` is optional and will default to ` true ` .
60
60
When enabled it will prevent linking against nodes that don't play to the default speaker.
61
61
62
- The setting ` ignore_input_media ` is optional and will default to ` true ` .
63
- When enabled it will prevent linking against nodes have a "Input" media-class.
64
-
65
62
The setting ` workaround ` is also optional and will default to an empty array.
66
63
When set, venmic will redirect the first node that matches all of the specified properties to itself.
67
64
</blockquote >
Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ struct patchbay : public Napi::ObjectWrap<patchbay>
171
171
auto include = to_array<vencord::node>(data.Get (" include" ));
172
172
auto exclude = to_array<vencord::node>(data.Get (" exclude" ));
173
173
auto ignore_devices = convert<bool >(data.Get (" ignore_devices" ));
174
- auto ignore_input_media = convert<bool >(data.Get (" ignore_input_media" ));
175
174
auto only_default_speakers = convert<bool >(data.Get (" only_default_speakers" ));
176
175
auto workaround = to_array<vencord::node>(data.Get (" workaround" ));
177
176
@@ -188,7 +187,6 @@ struct patchbay : public Napi::ObjectWrap<patchbay>
188
187
.include = include.value_or (std::vector<vencord::node>{}),
189
188
.exclude = exclude.value_or (std::vector<vencord::node>{}),
190
189
.ignore_devices = ignore_devices.value_or (true ),
191
- .ignore_input_media = ignore_input_media.value_or (true ),
192
190
.only_default_speakers = only_default_speakers.value_or (true ),
193
191
.workaround = workaround.value_or (std::vector<vencord::node>{}),
194
192
});
Original file line number Diff line number Diff line change @@ -15,11 +15,8 @@ namespace vencord
15
15
std::vector<node> exclude;
16
16
17
17
public:
18
- bool ignore_devices{true }; // Only link against non-device nodes
19
- bool ignore_input_media{true }; // Ignore Nodes that have "Input" in their media class
20
-
21
- public:
22
- bool only_default_speakers{true };
18
+ bool ignore_devices{true }; // Only link against non-device nodes
19
+ bool only_default_speakers{true }; // Ignore nodes that don't play to the default speaker
23
20
24
21
public:
25
22
std::vector<node> workaround;
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ export interface LinkData
18
18
exclude : Node [ ] ;
19
19
20
20
ignore_devices ?: boolean ;
21
- ignore_input_media ?: boolean ;
22
21
only_default_speakers ?: boolean ;
23
22
24
23
workaround ?: Node [ ] ;
Original file line number Diff line number Diff line change 11
11
"private" : false ,
12
12
"license" : " MPL-2.0" ,
13
13
"author" : " Curve (https://github.com/Curve)" ,
14
- "version" : " 4 .0.2 " ,
14
+ "version" : " 5 .0.0 " ,
15
15
"main" : " ./lib/index.js" ,
16
16
"types" : " ./lib/module.d.ts" ,
17
17
"scripts" : {
Original file line number Diff line number Diff line change @@ -228,13 +228,6 @@ namespace vencord
228
228
return ;
229
229
}
230
230
231
- if (options.ignore_input_media && props[" media.class" ].find (" Input" ) != std::string::npos)
232
- {
233
- logger::get ()->warn (" [patchbay] (link) prevented link to node with input class: {} (\" {}\" )" , id,
234
- props[" media.class" ]);
235
- return ;
236
- }
237
-
238
231
logger::get ()->debug (" [patchbay] (link) linking {}" , id);
239
232
240
233
auto mapping = map_ports (target);
You can’t perform that action at this time.
0 commit comments