mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Use the std::derived_from concept when applicable
This probably makes things much clearer at a glance instead of using a blanked typename.
This commit is contained in:
@@ -152,8 +152,8 @@ class Vst2EventHandler : public AdHocSocketHandler<Thread> {
|
|||||||
* @relates Vst2EventHandler::receive_events
|
* @relates Vst2EventHandler::receive_events
|
||||||
* @relates passthrough_event
|
* @relates passthrough_event
|
||||||
*/
|
*/
|
||||||
template <typename D>
|
template <std::derived_from<DefaultDataConverter> Converter>
|
||||||
intptr_t send_event(D& data_converter,
|
intptr_t send_event(Converter& data_converter,
|
||||||
std::optional<std::pair<Vst2Logger&, bool>> logging,
|
std::optional<std::pair<Vst2Logger&, bool>> logging,
|
||||||
int opcode,
|
int opcode,
|
||||||
int index,
|
int index,
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ Vst2PluginBridge::~Vst2PluginBridge() noexcept {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class DispatchDataConverter : DefaultDataConverter {
|
class DispatchDataConverter : public DefaultDataConverter {
|
||||||
public:
|
public:
|
||||||
DispatchDataConverter(std::vector<uint8_t>& chunk_data,
|
DispatchDataConverter(std::vector<uint8_t>& chunk_data,
|
||||||
AEffect& plugin,
|
AEffect& plugin,
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ intptr_t Vst2Bridge::dispatch_wrapper(AEffect* plugin,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class HostCallbackDataConverter : DefaultDataConverter {
|
class HostCallbackDataConverter : public DefaultDataConverter {
|
||||||
public:
|
public:
|
||||||
HostCallbackDataConverter(AEffect* plugin,
|
HostCallbackDataConverter(AEffect* plugin,
|
||||||
VstTimeInfo& last_time_info) noexcept
|
VstTimeInfo& last_time_info) noexcept
|
||||||
|
|||||||
Reference in New Issue
Block a user