Support find plugin to load

This commit is contained in:
John Zhao
2018-06-04 22:09:20 +08:00
parent b7436e41b9
commit dfb574c179
7 changed files with 184 additions and 0 deletions

View File

@@ -235,6 +235,10 @@ void Synthetic::SetPlugin(std::shared_ptr<Plugin> plugin) {
plugin_ = plugin;
}
bool Synthetic::HasPlugin() const {
return plugin_ != nullptr;
}
void Synthetic::InitStreamSupports() {
auto &&device = api_->device();
if (device->Supports(Stream::LEFT) && device->Supports(Stream::RIGHT)) {