Browse Source

C++11 VLA usage removed, prettifyed naming.

--HG--
branch : minor
raidho36 8 years ago
parent
commit
8737e2e70f

+ 2 - 2
src/modules/audio/openal/Audio.h

@@ -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
src/modules/audio/openal/Source.cpp

@@ -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
src/modules/audio/openal/Source.h

@@ -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