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

◆ get_audio_subsystem()

std::shared_ptr< AudioSubsystem > MayaFlux::Core::SubsystemManager::get_audio_subsystem ( )

Get typed access to the audio subsystem.

Returns
Shared pointer to AudioSubsystem or nullptr if not created

Convenience method that automatically casts to AudioSubsystem type. Equivalent to dynamic_cast on get_subsystem(SubsystemType::AUDIO).

Definition at line 78 of file SubsystemManager.cpp.

79{
80 if (auto subsystem = std::dynamic_pointer_cast<AudioSubsystem>(get_subsystem(SubsystemType::AUDIO))) {
81 return subsystem;
82 }
83 return nullptr;
84}
std::shared_ptr< ISubsystem > get_subsystem(SubsystemType type)
Get access to a specific subsystem by type.

References MayaFlux::Core::AUDIO, and get_subsystem().

Referenced by stop_audio_subsystem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: