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