Reduced the number of explicit retain/release method calls on love objects. Less chance of bugs!

This commit is contained in:
Alex Szpakowski
2014-08-07 14:53:17 -03:00
parent a0fff798aa
commit d59c76a55f
38 changed files with 194 additions and 247 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ private:
static const unsigned int MAX_BUFFERS = 32;
ALuint streamBuffers[MAX_BUFFERS];
StaticDataBuffer *staticBuffer;
Object::StrongRef<StaticDataBuffer> staticBuffer;
float pitch;
float volume;
@@ -182,7 +182,7 @@ private:
int channels;
love::sound::Decoder *decoder;
Object::StrongRef<love::sound::Decoder> decoder;
unsigned int toLoop;