Audacity 3.2.0
|
#include <LV2InstanceFeaturesList.h>
Classes | |
struct | ValidatePlugin |
Perform extra initialization-time checks. More... | |
Public Member Functions | |
LV2InstanceFeaturesList (const LV2FeaturesList &baseFeatures) | |
const LV2FeaturesList & | Base () const |
bool | InitializeOptions () |
const LV2_Options_Option * | NominalBlockLengthOption () const |
size_t | AddOption (LV2_URID, uint32_t size, LV2_URID, const void *value) |
bool | ValidateOptions (const LilvNode *subject) |
bool | CheckOptions (const LilvNode *subject, bool required) |
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 | |
LV2FeaturesListBase & | operator= (const LV2FeaturesListBase &)=delete |
virtual FeaturePointers | GetFeaturePointers () const =0 |
bool | ValidateFeatures (const LilvNode *subject) |
bool | CheckFeatures (const LilvNode *subject, bool required) |
Public Attributes | |
std::vector< LV2_Options_Option > | mOptions |
size_t | mBlockSizeOption {} |
size_t | mBlockSize { LV2Preferences::DEFAULT_BLOCKSIZE } |
int | mSeqSize { DEFAULT_SEQSIZE } |
bool | mSupportsNominalBlockLength { false } |
size_t | mMinBlockSize { 1 } |
size_t | mMaxBlockSize { mBlockSize } |
float | mSampleRate { 44100.0f } |
const bool | mOk |
Public Attributes inherited from ExtendedLV2FeaturesList | |
const LV2FeaturesListBase & | mBaseFeatures |
Public Attributes inherited from LV2FeaturesListBase | |
const LilvPlugin & | mPlug |
bool | mNoResize { false } |
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... | |
Protected Attributes inherited from ExtendedLV2FeaturesList | |
std::vector< LV2_Feature > | mFeatures |
Definition at line 25 of file LV2InstanceFeaturesList.h.
|
explicit |
Definition at line 17 of file LV2InstanceFeaturesList.cpp.
References ExtendedLV2FeaturesList::AddFeature(), and mOptions.
size_t LV2InstanceFeaturesList::AddOption | ( | LV2_URID | key, |
uint32_t | size, | ||
LV2_URID | type, | ||
const void * | value | ||
) |
Definition at line 68 of file LV2InstanceFeaturesList.cpp.
References key, mOptions, and size.
Referenced by InitializeOptions().
|
inline |
Definition at line 35 of file LV2InstanceFeaturesList.h.
References ExtendedLV2FeaturesList::mBaseFeatures.
Referenced by LV2Instance::LV2Instance(), and LV2WrapperFeaturesList::LV2WrapperFeaturesList().
bool LV2InstanceFeaturesList::CheckOptions | ( | const LilvNode * | subject, |
bool | required | ||
) |
subject | URI of a plugin |
required | whether to check required or optional options of subject |
!required
or else all required options are supported Definition at line 94 of file LV2InstanceFeaturesList.cpp.
References details::end(), LV2Symbols::gWorld, ExtendedLV2FeaturesList::mBaseFeatures, mOptions, LV2FeaturesListBase::mPlug, mSupportsNominalBlockLength, and wxT().
Referenced by ValidateOptions().
bool LV2InstanceFeaturesList::InitializeOptions | ( | ) |
Definition at line 25 of file LV2InstanceFeaturesList.cpp.
References AddOption(), LV2Symbols::gWorld, mBlockSize, mBlockSizeOption, mMaxBlockSize, mMinBlockSize, LV2FeaturesListBase::mPlug, mSampleRate, mSeqSize, and ValidateOptions().
const LV2_Options_Option * LV2InstanceFeaturesList::NominalBlockLengthOption | ( | ) | const |
Definition at line 81 of file LV2InstanceFeaturesList.cpp.
References mBlockSizeOption, mOptions, and mSupportsNominalBlockLength.
Referenced by LV2Wrapper::SendBlockSize().
bool LV2InstanceFeaturesList::ValidateOptions | ( | const LilvNode * | subject | ) |
subject | URI of a plugin |
Definition at line 89 of file LV2InstanceFeaturesList.cpp.
References CheckOptions().
Referenced by InitializeOptions().
size_t LV2InstanceFeaturesList::mBlockSize { LV2Preferences::DEFAULT_BLOCKSIZE } |
Definition at line 63 of file LV2InstanceFeaturesList.h.
Referenced by LV2Instance::GetBlockSize(), InitializeOptions(), and LV2Instance::SetBlockSize().
size_t LV2InstanceFeaturesList::mBlockSizeOption {} |
Definition at line 61 of file LV2InstanceFeaturesList.h.
Referenced by InitializeOptions(), and NominalBlockLengthOption().
size_t LV2InstanceFeaturesList::mMaxBlockSize { mBlockSize } |
Definition at line 69 of file LV2InstanceFeaturesList.h.
Referenced by InitializeOptions().
size_t LV2InstanceFeaturesList::mMinBlockSize { 1 } |
Definition at line 68 of file LV2InstanceFeaturesList.h.
Referenced by InitializeOptions(), and LV2Instance::SetBlockSize().
const bool LV2InstanceFeaturesList::mOk |
Definition at line 72 of file LV2InstanceFeaturesList.h.
std::vector<LV2_Options_Option> LV2InstanceFeaturesList::mOptions |
Definition at line 60 of file LV2InstanceFeaturesList.h.
Referenced by AddOption(), CheckOptions(), LV2InstanceFeaturesList(), and NominalBlockLengthOption().
float LV2InstanceFeaturesList::mSampleRate { 44100.0f } |
Definition at line 70 of file LV2InstanceFeaturesList.h.
Referenced by InitializeOptions(), LV2WrapperFeaturesList::LV2WrapperFeaturesList(), and LV2Instance::MakeMaster().
int LV2InstanceFeaturesList::mSeqSize { DEFAULT_SEQSIZE } |
Definition at line 64 of file LV2InstanceFeaturesList.h.
Referenced by InitializeOptions().
bool LV2InstanceFeaturesList::mSupportsNominalBlockLength { false } |
Definition at line 66 of file LV2InstanceFeaturesList.h.
Referenced by CheckOptions(), and NominalBlockLengthOption().