Fix IComponent::getBusCount()

This commit is contained in:
Robbert van der Helm
2020-12-14 18:02:51 +01:00
parent 0f59d6429d
commit e282f8c572
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -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;
+2 -4
View File
@@ -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