Switchboard Extension SDK
Loading...
Searching...
No Matches
AudioEngineFactory.hpp
1//
2// AudioEngineFactory.hpp
3// SwitchboardSDK
4//
5// Created by Balazs Kiss on 2025. 01. 22..
6//
7
8#pragma once
9
10#include <any>
11#include <vector>
12#include <map>
13#include <string>
14#include <switchboard_core/SwitchboardObject.hpp>
15
16namespace switchboard {
17
22public:
26 virtual std::string getEngineTypePrefix() = 0;
27
33 virtual std::vector<std::string> getEngineTypes() { return {}; }
34
43 virtual SwitchboardObject* createEngine(const std::string& type, const std::map<std::string, std::any>& config) = 0;
44};
45
46}
AudioEngineFactory interface.
Definition AudioEngineFactory.hpp:21
virtual std::vector< std::string > getEngineTypes()
Returns the list of engine types that this factory can create.
Definition AudioEngineFactory.hpp:33
virtual std::string getEngineTypePrefix()=0
The prefix of the engine type.
virtual SwitchboardObject * createEngine(const std::string &type, const std::map< std::string, std::any > &config)=0
Creates an audio engine.
SwitchboardObject interface.
Definition SwitchboardObject.hpp:31