Switchboard Extension SDK
Loading...
Searching...
No Matches
switchboard::AudioEngineFactory Class Referenceabstract

AudioEngineFactory interface. More...

#include <AudioEngineFactory.hpp>

Public Member Functions

virtual std::string getEngineTypePrefix ()=0
 The prefix of the engine type.
virtual std::vector< std::string > getEngineTypes ()
 Returns the list of engine types that this factory can create.
virtual SwitchboardObjectcreateEngine (const std::string &type, const std::map< std::string, std::any > &config)=0
 Creates an audio engine.

Detailed Description

AudioEngineFactory interface.

Member Function Documentation

◆ createEngine()

virtual SwitchboardObject * switchboard::AudioEngineFactory::createEngine ( const std::string & type,
const std::map< std::string, std::any > & config )
pure virtual

Creates an audio engine.

Parameters
typeThe type of the audio engine.
configConfiguration map.
Returns
The created audio engine.

◆ getEngineTypes()

virtual std::vector< std::string > switchboard::AudioEngineFactory::getEngineTypes ( )
inlinevirtual

Returns the list of engine types that this factory can create.

Returns
A vector of strings containing the engine types.

The documentation for this class was generated from the following file: