Skip to content

Class videocomposer::MIDIDriverFactory

ClassList > videocomposer > MIDIDriverFactory

More...

  • #include <MIDIDriver.h>

Public Static Functions

Type Name
std::unique_ptr< MIDIDriver > create (const std::string & driverName)
std::unique_ptr< MIDIDriver > createFirstAvailable ()
std::vector< std::string > getAvailableDrivers ()

Detailed Description

MIDIDriverFactory - Factory for creating MIDI drivers

Public Static Functions Documentation

function create

static std::unique_ptr< MIDIDriver > videocomposer::MIDIDriverFactory::create (
    const std::string & driverName
) 

Create a MIDI driver by name

Parameters:

  • driverName Driver name (e.g., "ALSA-Sequencer", "PORTMIDI")

Returns:

MIDI driver instance, or nullptr if not found/unsupported


function createFirstAvailable

static std::unique_ptr< MIDIDriver > videocomposer::MIDIDriverFactory::createFirstAvailable () 

Create the first available MIDI driver

Returns:

MIDI driver instance, or nullptr if none available


function getAvailableDrivers

static std::vector< std::string > videocomposer::MIDIDriverFactory::getAvailableDrivers () 

Get list of available driver names

Returns:

Vector of driver names



The documentation for this class was generated from the following file src/cuems_videocomposer/cpp/sync/MIDIDriver.h