Просмотр исходного кода

Merge branch 'next' of https://github.com/blackberry/GamePlay into next

seanpaultaylor 13 лет назад
Родитель
Сommit
402bd4f852
3 измененных файлов с 3 добавлено и 3 удалено
  1. 2 1
      gameplay/src/AudioBuffer.cpp
  2. 1 1
      gameplay/src/AudioBuffer.h
  3. 0 1
      gameplay/src/PlatformLinux.cpp

+ 2 - 1
gameplay/src/AudioBuffer.cpp

@@ -101,6 +101,7 @@ AudioBuffer* AudioBuffer::create(const char* path)
         goto cleanup;
         goto cleanup;
     }
     }
 
 
+	//NOTE: loadOgg actually sets this null, so it is expected
     if (file)    
     if (file)    
         fclose(file);
         fclose(file);
 
 
@@ -304,7 +305,7 @@ bool AudioBuffer::loadWav(FILE* file, ALuint buffer)
     }
     }
 }
 }
     
     
-bool AudioBuffer::loadOgg(FILE* file, ALuint buffer)
+bool AudioBuffer::loadOgg(FILE*& file, ALuint buffer)
 {
 {
     GP_ASSERT(file);
     GP_ASSERT(file);
 
 

+ 1 - 1
gameplay/src/AudioBuffer.h

@@ -45,7 +45,7 @@ private:
     
     
     static bool loadWav(FILE* file, ALuint buffer);
     static bool loadWav(FILE* file, ALuint buffer);
     
     
-    static bool loadOgg(FILE* file, ALuint buffer);
+    static bool loadOgg(FILE*& file, ALuint buffer);
 
 
     std::string _filePath;
     std::string _filePath;
     ALuint _alBuffer;
     ALuint _alBuffer;

+ 0 - 1
gameplay/src/PlatformLinux.cpp

@@ -643,7 +643,6 @@ int Platform::enterMessagePump()
                         if (evt.xmotion.state & Button1Mask)
                         if (evt.xmotion.state & Button1Mask)
                         {
                         {
                             gameplay::Platform::touchEventInternal(gameplay::Touch::TOUCH_MOVE, evt.xmotion.x, evt.xmotion.y, 0);
                             gameplay::Platform::touchEventInternal(gameplay::Touch::TOUCH_MOVE, evt.xmotion.x, evt.xmotion.y, 0);
-                            return 0;
                         }
                         }
                         else if (evt.xmotion.state & Button3Mask)
                         else if (evt.xmotion.state & Button3Mask)
                         {
                         {