mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
C++11 VLA usage removed, prettifyed naming.
--HG-- branch : minor
This commit is contained in:
@@ -137,12 +137,12 @@ private:
|
|||||||
ALCcontext *context;
|
ALCcontext *context;
|
||||||
|
|
||||||
// The OpenAL effects
|
// The OpenAL effects
|
||||||
struct effectmapStorage
|
struct EffectMapStorage
|
||||||
{
|
{
|
||||||
Effect *effect;
|
Effect *effect;
|
||||||
ALuint slot;
|
ALuint slot;
|
||||||
};
|
};
|
||||||
std::map<std::string, struct effectmapStorage> effectmap;
|
std::map<std::string, struct EffectMapStorage> effectmap;
|
||||||
std::stack<ALuint> slotlist;
|
std::stack<ALuint> slotlist;
|
||||||
int MAX_SCENE_EFFECTS = 64;
|
int MAX_SCENE_EFFECTS = 64;
|
||||||
int MAX_SOURCE_EFFECTS = 64;
|
int MAX_SOURCE_EFFECTS = 64;
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ bool Source::update()
|
|||||||
if (!isFinished())
|
if (!isFinished())
|
||||||
{
|
{
|
||||||
ALint processed;
|
ALint processed;
|
||||||
ALuint buffers[this->buffers];
|
ALuint buffers[MAX_BUFFERS];
|
||||||
float curOffsetSamples, curOffsetSecs, newOffsetSamples, newOffsetSecs;
|
float curOffsetSamples, curOffsetSecs, newOffsetSamples, newOffsetSecs;
|
||||||
int freq = decoder->getSampleRate();
|
int freq = decoder->getSampleRate();
|
||||||
|
|
||||||
|
|||||||
@@ -228,12 +228,12 @@ private:
|
|||||||
|
|
||||||
Filter *directfilter = nullptr;
|
Filter *directfilter = nullptr;
|
||||||
|
|
||||||
struct effectmapStorage
|
struct EffectMapStorage
|
||||||
{
|
{
|
||||||
Filter *filter;
|
Filter *filter;
|
||||||
ALuint slot, target;
|
ALuint slot, target;
|
||||||
};
|
};
|
||||||
std::map<std::string, struct effectmapStorage> effectmap;
|
std::map<std::string, struct EffectMapStorage> effectmap;
|
||||||
std::stack<ALuint> slotlist;
|
std::stack<ALuint> slotlist;
|
||||||
}; // Source
|
}; // Source
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user