Rename love.audio.getEffectsList and Source:getEffectsList to getActiveEffects. They now return an empty table instead of nil when there are no active effects, as well.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2017-07-28 19:28:50 -03:00
parent 19b4079ecc
commit 5fc2190ce4
12 changed files with 22 additions and 23 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ bool Audio::getEffect(const char *, std::map<Effect::Parameter, float> &)
return false;
}
bool Audio::getEffectsList(std::vector<std::string> &list)
bool Audio::getActiveEffects(std::vector<std::string> &) const
{
return false;
}
+1 -1
View File
@@ -81,7 +81,7 @@ public:
bool setEffect(const char *, std::map<Effect::Parameter, float> &params);
bool unsetEffect(const char *);
bool getEffect(const char *, std::map<Effect::Parameter, float> &params);
bool getEffectsList(std::vector<std::string> &list);
bool getActiveEffects(std::vector<std::string> &list) const;
int getMaxSceneEffects() const;
int getMaxSourceEffects() const;
bool isEFXsupported() const;
+1 -1
View File
@@ -274,7 +274,7 @@ bool Source::getEffect(const char *, std::map<Filter::Parameter, float> &)
return false;
}
bool Source::getEffectsList(std::vector<std::string> &)
bool Source::getActiveEffects(std::vector<std::string> &) const
{
return false;
}
+1 -1
View File
@@ -90,7 +90,7 @@ public:
virtual bool setEffect(const char *effect, const std::map<Filter::Parameter, float> &params);
virtual bool unsetEffect(const char *effect);
virtual bool getEffect(const char *effect, std::map<Filter::Parameter, float> &params);
virtual bool getEffectsList(std::vector<std::string> &list);
virtual bool getActiveEffects(std::vector<std::string> &list) const;
private: