mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
C++11 VLA usage removed, prettifyed naming.
--HG-- branch : minor
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user