Browse Source

Merge branch 'master' into dev

dmuratshin 9 years ago
parent
commit
d3ce6c9a2f
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/oal/SoundSystem_oal.cpp

+ 9 - 0
src/oal/SoundSystem_oal.cpp

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