<div dir="ltr"><div dir="ltr">Hello!<div><br></div><div>We have been using OpenALSoft for some time now to port our games soundsystem (initially written for iOS) to Android.</div><div><br></div><div>Originally we used an old heavily patched version (I don't really know what version it was based on), but fairly recently I decided to migrate to a version based on 1.18.2, and reduce our patches to a minimum, and keep them organised with git. It mostly works great, and was much more convenient to build and include in my project without much work. Currently we use this version for Android, iOS and OSX. </div><div><br></div><div>We still have a few additions, but those should not affect my current issue. (The addition is switching of backend in runtime, and driving the wave mixing manually, so I can switch to wave backend and use it to temporary record sound to file, for replay video generation, this part works great on iOS and is already live in our latest game. There's also a few minor patches to compile for iOS)</div><div><br></div><div><div>But at least one thing does not work for me anymore on Android, and that is suspending and resuming. (when application goes into background and comes back again). The problem is the mixing thread is still running and outputting (very choppy) sound for all our looping sound effects while the app is in background...</div><div><br></div><div>How am I supposed to handle this? Destroying and recreating the context is very inconvenient since the suspend can happen at any time and we want everything to restart playing exactly where suspended when we resume again.</div><div><br></div><div>In my old version of OpenALSoft, I had added some code that pauses the mixing thread on android when I call alcSuspendContext, and restarts it again on alcProcessContext (and call these when the app suspends/resume), and this works just as I want it to.</div><div><br></div><div>Do you have any advice for how I should handle suspend/resume on Android? If not, I could re-add the thread suspension in our own fork.</div><div><br></div><div>Also, let me know if you are interested in knowing more about any of our other patches.</div><div><br></div>-- <br><div class="gmail_signature"><blockquote type="cite" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div style="word-wrap:break-word"><span style="border-collapse:separate;font-family:Helvetica;text-align:-webkit-auto"><div style="margin:0px;font-family:Verdana;color:rgb(100,100,100)"><b><p align="LEFT" style="margin-bottom:0in"><font color="#515151"><font face="Verdana, sans-serif"><font size="2" style="font-size:11pt">Best regards,</font></font></font></p></b></div><div style="margin:0px;font-family:Verdana;color:rgb(100,100,100)"><b>Olof Hedman</b></div><div style="margin:0px;font-size:12px;font-family:Verdana;color:rgb(140,140,140)"><br></div><table cellspacing="0" cellpadding="0"><tbody><tr><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:40px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)">Mobile:</div></td><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:10px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100);min-height:12px"><br></div></td><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:118px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)"><a value="+46704670767" style="color:rgb(17,85,204)">+46 (0)708 - 42 28 76 </a></div></td></tr><tr><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:40px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)">Office:</div></td><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:10px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100);min-height:12px"><br></div></td><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:118px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)"><a value="+46406444495" style="color:rgb(17,85,204)">+46 (0)40 - 644 44 95</a></div></td></tr><tr><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:40px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)">Web:</div></td><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:10px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100);min-height:12px"><br></div></td><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:118px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(37,79,174)"><span style="text-decoration:underline"><a href="http://www.illusionlabs.com/" style="color:rgb(17,85,204)" target="_blank">www.illusionlabs.com</a></span></div></td></tr><tr><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:40px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)">Twitter:</div></td><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:10px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100);min-height:12px"><br></div></td><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:118px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(37,79,174)"><span style="text-decoration:underline"><a href="http://twitter.com/illusionlabs" style="color:rgb(17,85,204)" target="_blank">twitter.com/illusionlabs</a></span></div></td></tr></tbody></table><br><table cellspacing="0" cellpadding="0"><tbody><tr><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:136px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)">Illusion Labs AB</div></td></tr><tr><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:136px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)">Kalendegatan 25</div></td></tr><tr><td valign="middle" style="margin:0px;font-family:arial,sans-serif;width:136px"><div style="margin:0px;font-size:10px;font-family:Verdana;color:rgb(100,100,100)">SE-211 35 Malmö, Sweden</div></td></tr></tbody></table><p style="margin:0px 0px 9px;font-size:9px;font-family:Verdana;color:rgb(170,170,170)"><br></p><p style="margin:0px 0px 9px;font-size:9px;font-family:Verdana;color:rgb(170,170,170)">"The information in this e-mail, and attachment(s) thereto, is strictly confidential and may be legally privileged. It is intended solely for the named recipient(s), and access to this e-mail, or any attachment(s) thereto, by anyone else is unauthorized. If you are not the intended recipient please inform the sender by replying to this transmission, and delete the e-mail, its attachment(s), and any copies of it, without disclosing it."</p></span></div></blockquote></div>
</div></div></div>