mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-19 18:03:56 +02:00
Fix IComponent::getBusCount()
This commit is contained in:
@@ -217,7 +217,7 @@ class YaComponent : public Steinberg::Vst::IComponent,
|
|||||||
* the Wine plugin host.
|
* the Wine plugin host.
|
||||||
*/
|
*/
|
||||||
struct GetBusCount {
|
struct GetBusCount {
|
||||||
using Response = UniversalTResult;
|
using Response = PrimitiveWrapper<int32>;
|
||||||
|
|
||||||
native_size_t instance_id;
|
native_size_t instance_id;
|
||||||
|
|
||||||
|
|||||||
@@ -84,10 +84,8 @@ YaComponentPluginImpl::setIoMode(Steinberg::Vst::IoMode mode) {
|
|||||||
int32 PLUGIN_API
|
int32 PLUGIN_API
|
||||||
YaComponentPluginImpl::getBusCount(Steinberg::Vst::MediaType type,
|
YaComponentPluginImpl::getBusCount(Steinberg::Vst::MediaType type,
|
||||||
Steinberg::Vst::BusDirection dir) {
|
Steinberg::Vst::BusDirection dir) {
|
||||||
return bridge
|
return bridge.send_message(YaComponent::GetBusCount{
|
||||||
.send_message(YaComponent::GetBusCount{
|
.instance_id = arguments.instance_id, .type = type, .dir = dir});
|
||||||
.instance_id = arguments.instance_id, .type = type, .dir = dir})
|
|
||||||
.native();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tresult PLUGIN_API
|
tresult PLUGIN_API
|
||||||
|
|||||||
Reference in New Issue
Block a user