C++11 VLA usage removed, prettifyed naming.

--HG--
branch : minor
This commit is contained in:
raidho36
2017-07-10 03:14:41 +03:00
parent 157d94fae3
commit 8737e2e70f
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -137,12 +137,12 @@ private:
ALCcontext *context;
// The OpenAL effects
struct effectmapStorage
struct EffectMapStorage
{
Effect *effect;
ALuint slot;
};
std::map<std::string, struct effectmapStorage> effectmap;
std::map<std::string, struct EffectMapStorage> effectmap;
std::stack<ALuint> slotlist;
int MAX_SCENE_EFFECTS = 64;
int MAX_SOURCE_EFFECTS = 64;
+1 -1
View File
@@ -392,7 +392,7 @@ bool Source::update()
if (!isFinished())
{
ALint processed;
ALuint buffers[this->buffers];
ALuint buffers[MAX_BUFFERS];
float curOffsetSamples, curOffsetSecs, newOffsetSamples, newOffsetSecs;
int freq = decoder->getSampleRate();
+2 -2
View File
@@ -228,12 +228,12 @@ private:
Filter *directfilter = nullptr;
struct effectmapStorage
struct EffectMapStorage
{
Filter *filter;
ALuint slot, target;
};
std::map<std::string, struct effectmapStorage> effectmap;
std::map<std::string, struct EffectMapStorage> effectmap;
std::stack<ALuint> slotlist;
}; // Source