XJ music engine  1.9.6
In-game runtime engine for XJ music.
Public Member Functions | List of all members
XJ::Craft::LambdaInstrumentProvider Class Referencefinal

#include <Craft.h>

Inheritance diagram for XJ::Craft::LambdaInstrumentProvider:
XJ::Craft::InstrumentProvider

Public Member Functions

 LambdaInstrumentProvider (std::function< std::optional< Instrument >(ProgramVoice)> func)
 
std::optional< Instrumentget (const ProgramVoice *voice) override
 
- Public Member Functions inherited from XJ::Craft::InstrumentProvider
virtual ~InstrumentProvider ()=default
 

Detailed Description

Lambda instrument provider to create an instrument provider from a lambda

Constructor & Destructor Documentation

◆ LambdaInstrumentProvider()

XJ::Craft::LambdaInstrumentProvider::LambdaInstrumentProvider ( std::function< std::optional< Instrument >(ProgramVoice)>  func)
inlineexplicit

Member Function Documentation

◆ get()

std::optional<Instrument> XJ::Craft::LambdaInstrumentProvider::get ( const ProgramVoice voice)
inlineoverridevirtual

This is the default implementation of the InstrumentProvider interface. It should be replaced by a custom Lambda implementation when used

Reimplemented from XJ::Craft::InstrumentProvider.


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