VSTHost: Fix the build on GCC 7.
rename round -> vstround.
This commit is contained in:
@@ -219,7 +219,7 @@ VSTParameter::SetValue(float value)
|
|||||||
|
|
||||||
if (fType == VST_PARAM_DROPLIST) {
|
if (fType == VST_PARAM_DROPLIST) {
|
||||||
//take value by index
|
//take value by index
|
||||||
int index = (int)round(value);
|
int index = (int)vstround(value);
|
||||||
if (index >= 0 && index < fDropList.CountItems()) {
|
if (index >= 0 && index < fDropList.CountItems()) {
|
||||||
DropListValue *item = (DropListValue*)fDropList.ItemAt(index);
|
DropListValue *item = (DropListValue*)fDropList.ItemAt(index);
|
||||||
value = item->Value;
|
value = item->Value;
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ struct VSTEffect
|
|||||||
//typedefs
|
//typedefs
|
||||||
typedef int32 (*audioMasterCallback)(VSTEffect*, int32, int32, int32, void*, float);
|
typedef int32 (*audioMasterCallback)(VSTEffect*, int32, int32, int32, void*, float);
|
||||||
typedef VSTEffect* (*VSTEntryProc)(audioMasterCallback audioMaster);
|
typedef VSTEffect* (*VSTEntryProc)(audioMasterCallback audioMaster);
|
||||||
inline float round(float x) {return ceil(x-0.5);}
|
inline float vstround(float x) {return ceil(x-0.5);}
|
||||||
|
|
||||||
//structure for droplist parameters
|
//structure for droplist parameters
|
||||||
struct DropListValue {
|
struct DropListValue {
|
||||||
|
|||||||
Reference in New Issue
Block a user