浏览代码

Merge branch 'master' into dev

dmuratshin 9 年之前
父节点
当前提交
d3ce6c9a2f
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/oal/SoundSystem_oal.cpp

+ 9 - 0
src/oal/SoundSystem_oal.cpp

@@ -60,6 +60,11 @@ namespace oxygine
         alcSuspendContext(_context);
         alcSuspendContext(_context);
         alcMakeContextCurrent(0);
         alcMakeContextCurrent(0);
 #endif
 #endif
+
+#if TARGET_OS_IPHONE
+        alcSuspendContext(_context);
+        alcMakeContextCurrent(0);
+#endif
     }
     }
 
 
     void SoundSystemOAL::resume()
     void SoundSystemOAL::resume()
@@ -75,6 +80,10 @@ namespace oxygine
         alcProcessContext(_context);
         alcProcessContext(_context);
 #endif
 #endif
 
 
+#if TARGET_OS_IPHONE
+        alcMakeContextCurrent(_context);
+        alcProcessContext(_context);
+#endif
 
 
 
 
         /*
         /*