MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ create_backend()

std::unique_ptr< IAudioBackend > MayaFlux::Core::AudioBackendFactory::create_backend ( Utils::AudioBackendType  type)
static

Creates a specific audio backend implementation.

Parameters
typeIdentifier for the requested backend type
Returns
Unique pointer to an IAudioBackend implementation

Instantiates and configures the appropriate backend implementation based on the specified type, abstracting the details of backend selection and initialization.

Definition at line 376 of file RtAudioBackend.cpp.

377{
378 switch (type) {
380 return std::make_unique<RtAudioBackend>();
381 default:
382 throw std::runtime_error("Unsupported audio backend type");
383 }
384}

References MayaFlux::Utils::RTAUDIO.