Skip to content

Commit 740cffb

Browse files
committed
[xclap] On-going CLAP plugin host implementation (params in fix).
1 parent 44c2eda commit 740cffb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/qtractorClapPlugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,9 +2315,9 @@ void qtractorClapPlugin::updateParam (
23152315
this, pParam->index(), fValue, int(bUpdate));
23162316
#endif
23172317

2318-
const unsigned long iIndex = pParam->index();
2318+
const clap_id id = pClapParam->impl()->param_info().id;
23192319
const double value = double(fValue);
2320-
m_pImpl->setParameter(iIndex, value);
2320+
m_pImpl->setParameter(id, value);
23212321
}
23222322

23232323

src/qtractorClapPlugin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class qtractorClapPluginType : public qtractorPluginType
5353
// Factory method (static)
5454
static qtractorClapPluginType *createType (
5555
qtractorPluginFile *pFile, unsigned long iIndex);
56-
56+
5757
// Executive methods.
5858
bool open();
5959
void close();
@@ -108,7 +108,7 @@ class qtractorClapPlugin : public qtractorPlugin
108108
// Do the actual (de)activation.
109109
void activate();
110110
void deactivate();
111-
111+
112112
// Parameter update methods.
113113
void updateParam(qtractorPlugin::Param *pParam, float fValue, bool bUpdate);
114114

0 commit comments

Comments
 (0)