Audacity 3.2.0
Public Member Functions | List of all members
LV2WrapperFeaturesList Struct Referencefinal

#include <LV2InstanceFeaturesList.h>

Inheritance diagram for LV2WrapperFeaturesList:
Collaboration diagram for LV2WrapperFeaturesList:

Public Member Functions

 LV2WrapperFeaturesList (LV2InstanceFeaturesList &baseFeatures, float sampleRate=44100.0f, const LV2_Worker_Schedule *pWorkerSchedule=nullptr)
const LV2InstanceFeaturesListBase () const
- Public Member Functions inherited from ExtendedLV2FeaturesList
 ExtendedLV2FeaturesList (WithBase_t, const LV2FeaturesListBase &baseFeatures)
virtual ~ExtendedLV2FeaturesList ()
FeaturePointers GetFeaturePointers () const override
void AddFeature (const char *uri, const void *data)
- Public Member Functions inherited from LV2FeaturesListBase
 LV2FeaturesListBase (const LilvPlugin &plug)
virtual ~LV2FeaturesListBase ()
 LV2FeaturesListBase (const LV2FeaturesListBase &)=delete
LV2FeaturesListBaseoperator= (const LV2FeaturesListBase &)=delete
virtual FeaturePointers GetFeaturePointers () const =0
bool ValidateFeatures (const LilvNode *subject)
bool CheckFeatures (const LilvNode *subject, bool required)

Additional Inherited Members

- Public Types inherited from LV2FeaturesListBase
using FeaturePointers = std::vector< const LV2_Feature * >
 Get vector of pointers to features, whose .data() can be passed to lv2. More...
- Public Attributes inherited from ExtendedLV2FeaturesList
const LV2FeaturesListBasemBaseFeatures
- Public Attributes inherited from LV2FeaturesListBase
const LilvPlugin & mPlug
bool mNoResize { false }
- Protected Attributes inherited from ExtendedLV2FeaturesList
std::vector< LV2_Feature > mFeatures

Detailed Description

Definition at line 75 of file LV2InstanceFeaturesList.h.

Constructor & Destructor Documentation

◆ LV2WrapperFeaturesList()

LV2WrapperFeaturesList::LV2WrapperFeaturesList ( LV2InstanceFeaturesList baseFeatures,
float  sampleRate = 44100.0f,
const LV2_Worker_Schedule *  pWorkerSchedule = nullptr 

Definition at line 129 of file LV2InstanceFeaturesList.cpp.

132 : ExtendedLV2FeaturesList{ WithBase, baseFeatures }
134 baseFeatures.mSampleRate = sampleRate;
135 auto &base = baseFeatures.Base();
136 if (base.SuppliesWorkerInterface()) {
137 // Inform the plugin how to send work to another thread
138 AddFeature( LV2_WORKER__schedule, pWorkerSchedule );
139 }
constexpr WithBase_t WithBase
Extends one (immutable) feature list (whose lifetime contains this one's)
void AddFeature(const char *uri, const void *data)
const LV2FeaturesList & Base() const

References ExtendedLV2FeaturesList::AddFeature(), LV2InstanceFeaturesList::Base(), LV2InstanceFeaturesList::mSampleRate, and anonymous_namespace{ClipSegmentTest.cpp}::sampleRate.

Here is the call graph for this function:

Member Function Documentation

◆ Base()

const LV2InstanceFeaturesList & LV2WrapperFeaturesList::Base ( ) const

Definition at line 80 of file LV2InstanceFeaturesList.h.

80 {
81 return static_cast<const LV2InstanceFeaturesList&>(mBaseFeatures);
82 }
const LV2FeaturesListBase & mBaseFeatures

References ExtendedLV2FeaturesList::mBaseFeatures.

Referenced by LV2Wrapper::SendBlockSize().

Here is the caller graph for this function:

The documentation for this struct was generated from the following files: