{"id":5429,"date":"2018-05-05T20:24:45","date_gmt":"2018-05-05T20:24:45","guid":{"rendered":"http:\/\/wpinitiate.com\/index.php\/2018\/05\/05\/iphone-game-programming-tutorial-9-sound-manager\/"},"modified":"2018-05-05T20:24:45","modified_gmt":"2018-05-05T20:24:45","slug":"iphone-game-programming-tutorial-9-sound-manager","status":"publish","type":"post","link":"https:\/\/wpinitiate.com\/index.php\/2018\/05\/05\/iphone-game-programming-tutorial-9-sound-manager\/","title":{"rendered":"iPhone Game Programming \u2013 Tutorial 9 \u2013 Sound Manager"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"580\" height=\"380\" src=\"https:\/\/player.vimeo.com\/video\/6440991?color=00adef\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe><br \/>In this tutorial I create a simple sound manager class that can play back multiple sounds using OpenAL. It also allows you to play background music as well using the AVAudioPlayer class.<br \/>\nThe reason for writing my own sound manager was to see how OpenAL works. Commenters on this blog provided some great links, see the \u201cSound of music\u2026 explosions and lasers\u201d, so I decided to work through them and get something working.<\/p>\n<p>This class is simple and provides basic access to playing sounds in OpenAL. It also makes use of all 32 sources OpenAL sources available on the iPhone so that the same sound can be played simultaneously which is great for explosions and laser fire.<br \/><a href=\"https:\/\/1.envato.market\/coderevolution\">Check out these cool WordPress plugins!<\/a> &#8211; CodeRevolution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial I create a simple sound manager class that can play back multiple sounds using OpenAL. It also allows you to play background music as well using the AVAudioPlayer class. The reason for writing my own sound manager was to see how OpenAL works. Commenters on this blog provided some great links, see&hellip;<\/p>\n","protected":false},"author":1,"featured_media":5430,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2019,2018,2016,2015,2017,1],"tags":[2014,330,2013,1882,2093,1629,1297,1287],"class_list":["post-5429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-71squared-com","category-development","category-game","category-iphone","category-programming","category-wp","tag-71squared-com","tag-development","tag-game","tag-iphone","tag-openal","tag-programming","tag-sound","tag-the"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/posts\/5429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/comments?post=5429"}],"version-history":[{"count":0,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/posts\/5429\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/media\/5430"}],"wp:attachment":[{"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/media?parent=5429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/categories?post=5429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/tags?post=5429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}