72 return dir ==
kInput ? &audioInputs : &audioOutputs;
74 return dir ==
kInput ? &eventInputs : &eventOutputs;
82 audioOutputs.
clear ();
91 eventOutputs.
clear ();
97tresult Component::removeAllBusses ()
108 if (controllerClass.
isValid ())
110 controllerClass.toTUID (classID);
119 return kNotImplemented;
125 BusList* busList = getBusList (type, dir);
126 return busList ?
static_cast<int32
> (busList->
size ()) : 0;
134 return kInvalidArgument;
135 BusList* busList = getBusList (type, dir);
136 if (busList ==
nullptr)
137 return kInvalidArgument;
138 if (index >=
static_cast<int32
> (busList->
size ()))
139 return kInvalidArgument;
141 Bus* bus = busList->
at (index);
152 return kNotImplemented;
160 return kInvalidArgument;
161 BusList* busList = getBusList (type, dir);
162 if (busList ==
nullptr)
163 return kInvalidArgument;
164 if (index >=
static_cast<int32
> (busList->
size ()))
165 return kInvalidArgument;
167 Bus* bus = busList->
at (index);
181 return kNotImplemented;
187 return kNotImplemented;
195 return kInvalidArgument;
196 BusList* busList = getBusList (type, dir);
197 if (busList ==
nullptr)
198 return kInvalidArgument;
199 if (index >=
static_cast<int32
> (busList->
size ()))
200 return kInvalidArgument;
202 Bus* bus = busList->
at (index);
213 return (channel < 0) ==
true ? kResultFalse : kResultTrue;
bool isValid() const
Checks if the UID data is valid.
The basic interface of all interfaces.
void setActive(TBool state)
Activates the bus.
void setName(const std::u16string &newName)
Sets a new name for this bus.
virtual bool getInfo(BusInfo &)
Gets the BusInfo of this bus.
tresult PLUGIN_API initialize(FUnknown *context) SMTG_OVERRIDE
The host passes a number of interfaces as context to initialize the plug-in class.
tresult PLUGIN_API terminate() SMTG_OVERRIDE
This function is called before the plug-in is unloaded and can be used for cleanups.
int32 PLUGIN_API getBusCount(MediaType type, BusDirection dir) SMTG_OVERRIDE
Called after the plug-in is initialized.
tresult PLUGIN_API getState(IBStream *state) SMTG_OVERRIDE
Retrieves complete state of component.
tresult PLUGIN_API getRoutingInfo(RoutingInfo &inInfo, RoutingInfo &outInfo) SMTG_OVERRIDE
Retrieves routing information (to be implemented when more than one regular input or output bus exist...
tresult PLUGIN_API setState(IBStream *state) SMTG_OVERRIDE
Sets complete state of component.
tresult PLUGIN_API setActive(TBool state) SMTG_OVERRIDE
Activates / deactivates the component.
tresult PLUGIN_API initialize(FUnknown *context) SMTG_OVERRIDE
The host passes a number of interfaces as context to initialize the plug-in class.
tresult PLUGIN_API setIoMode(IoMode mode) SMTG_OVERRIDE
Called before 'initialize' to set the component usage (optional).
tresult PLUGIN_API activateBus(MediaType type, BusDirection dir, int32 index, TBool state) SMTG_OVERRIDE
Called upon (de-)activating a bus in the host application.
tresult PLUGIN_API getControllerClassId(TUID classID) SMTG_OVERRIDE
Called before initializing the component to get information about the controller class.
tresult PLUGIN_API getBusInfo(MediaType type, BusDirection dir, int32 index, BusInfo &info) SMTG_OVERRIDE
Called after the plug-in is initialized.
tresult PLUGIN_API terminate() SMTG_OVERRIDE
This function is called before the plug-in is unloaded and can be used for cleanups.
tresult renameBus(MediaType type, BusDirection dir, int32 index, const String128 newName)
Renames a specific bus.
tresult removeAudioBusses()
Removes all Audio Busses.
tresult removeEventBusses()
Removes all Event Busses.
int32 getSpeakerIndex(Speaker speaker, SpeakerArrangement arrangement)
Returns the index of a given speaker in a speaker arrangement (-1 if speaker is not part of the arran...
int32 IoMode
I/O mode (see vst3IoMode)
TChar String128[128]
128 character UTF-16 string
tresult getSpeakerChannelIndex(SpeakerArrangement arrangement, uint64 speaker, int32 &channel)
Gets the channel index of a given speaker in a arrangement, returns kResultFalse if speaker not part ...
int32 BusDirection
bus direction (in/out)
uint64 SpeakerArrangement
Bitset of speakers.
int32 MediaType
media type (audio/event)
Routing Information: When the plug-in supports multiple I/O busses, a host may want to know how the b...
BusInfo: This is the structure used with getBusInfo, informing the host about what is a specific give...
MediaType mediaType
Media type - has to be a value of MediaTypes.
BusDirection direction
input or output BusDirections