{"id":1230,"date":"2016-11-01T21:46:53","date_gmt":"2016-11-01T12:46:53","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=1230"},"modified":"2016-11-01T21:46:53","modified_gmt":"2016-11-01T12:46:53","slug":"iosspritekit-playsoundfilenamed%e3%81%aa%e3%81%a9%e3%83%aa%e3%82%bd%e3%83%bc%e3%82%b9%e3%81%ae%e3%83%ad%e3%83%bc%e3%83%89%e3%81%ae%e5%a4%b1%e6%95%97","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=1230","title":{"rendered":"[iOS][SpriteKit] playSoundFileNamed\u306a\u3069\u30ea\u30bd\u30fc\u30b9\u306e\u30ed\u30fc\u30c9\u306e\u5931\u6557"},"content":{"rendered":"<p><span style=\"font-size: 12pt;\">SpriteKit\u3067\u52b9\u679c\u97f3\u3092\u518d\u751f\u3059\u308b\u969b\u3001<\/span><\/p>\n<p>[obj-c]<br \/>\n[self runAction:[SKAction playSoundFileNamed:@&quot;test.mp3&quot; waitForCompletion:NO]];<br \/>\n[\/obj-c]<\/p>\n<p><span style=\"font-size: 12pt;\">\u3068\u8a18\u8ff0\u3057\u3066\u3044\u305f\u304c\u3001\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3057\u518d\u751f\u3059\u308b\u5834\u5408\u3084\u3001\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9023\u7d9a\u3057\u3066\u518d\u751f\u3059\u308b\u5834\u5408\u3001\u30ed\u30fc\u30c9\u3055\u308c\u306a\u3044\u73fe\u8c61\u304c\u8d77\u3053\u308b\u3002\u3053\u308c\u306f\u5fc5\u305a\u8d77\u3053\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u3042\u308b\u7a0b\u5ea6\u3001\u8d70\u3089\u305b\u3066\u3044\u308b\u3068\u767a\u751f\u3059\u308b\u306e\u3067\u539f\u56e0\u7279\u5b9a\u306b\u975e\u5e38\u306b\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u3002stackoverflow\u3067\u3082\u5831\u544a\u3055\u308c\u3066\u304a\u308a\u3001<\/span><\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/26683171\/skaction-playsoundfilenamed-crashes-when-repeat-sprite-kit\">http:\/\/stackoverflow.com\/questions\/26683171\/skaction-playsoundfilenamed-crashes-when-repeat-sprite-kit<\/a><\/p>\n<p><span style=\"font-size: 12pt;\">\u521d\u671f\u5316\u6642(\u30b7\u30fc\u30f3\u521d\u671f\u5316)\u306b\u30d7\u30ec\u30ed\u30fc\u30c9\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u89e3\u6c7a\u3059\u308b\u3068\u306e\u3053\u3068\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u5b9f\u306f\u3001\u30d1\u30fc\u30c6\u30a3\u30af\u30eb\u751f\u6210\u3001\u30c6\u30af\u30b9\u30c1\u30e3\u30fc\u306e\u8aad\u307f\u8fbc\u307f\u3067\u3082\u4f3c\u305f\u69d8\u306a\u73fe\u8c61\u304c\u8d77\u3053\u308a\u3001<\/span><\/p>\n<p>[obj-c]<br \/>\nSKEmitterNode* emitter = [NSKeyedUnarchiver unarchiveObjectWithFile:<br \/>\n[[NSBundle mainBundle] pathForResource:@&quot;particle&quot;<br \/>\nofType:@&quot;sks&quot;]];<br \/>\n[\/obj-c]<\/p>\n<p><span style=\"font-size: 12pt;\">\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u3067\u3001(\u76f8\u5f53\u306b)\u7e70\u308a\u8fd4\u3057\u751f\u6210\u3059\u308b\u3068\u3001\u7a81\u7136emitter\u306bnull\u304c\u5165\u308a\u3001\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u73fe\u8c61\u3067\u3042\u308b\u3002\u3053\u308c\u3082\u3042\u3089\u304b\u3058\u3081\u3001init\u6642\u306b\u30d7\u30ec\u30ed\u30fc\u30c9\u3057\u3066\u3001[emmiter copy]\u3067\u4f7f\u3044\u56de\u3057\u3059\u3002\u5b89\u5168\u306e\u305f\u3081\u30c6\u30af\u30b9\u30c1\u30e3\u30fc\u3082\u30d7\u30ec\u30ed\u30fc\u30c9\u3057\u3066copy\u3057\u3066\u4f7f\u3046\u3088\u3046\u306b\u3057\u305f\u3002\u3053\u308c\u3067\u30af\u30e9\u30c3\u30b7\u30e5\u306f\u53ce\u307e\u3063\u305f\u6c17\u304c\u3059\u308b\u3002<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u3000\u3069\u3046\u3084\u3089\u3001\u30ea\u30bd\u30fc\u30b9\u306e\u8aad\u307f\u8fbc\u307f\u306f\u3001\u305d\u306e\u90fd\u5ea6\u3067\u306f\u306a\u304finit\u6642\u306b\u30d7\u30ec\u30ed\u30fc\u30c9\u3057\u3066\u3001\u30b3\u30d4\u30fc\u304c\u5fc5\u8981\u306a\u3082\u306e\u306f\u30b3\u30d4\u30fc\u3057\u3066\u3001\u4f7f\u3044\u307e\u308f\u3059\u3068\u826f\u3044\u69d8\u3060\u30022\u65e5\u304b\u304b\u3063\u305f\u30fb\u30fb\u30fb\u3002\u306a\u304d\u305d\u3046<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SpriteKit\u3067\u52b9\u679c\u97f3\u3092\u518d\u751f\u3059\u308b\u969b\u3001 [obj-c] [self runAction:[SKAction playSoundFileNamed:@&quot;test.mp3&quot; waitForComplet [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[7,28],"tags":[],"class_list":["post-1230","post","type-post","status-publish","format-standard","hentry","category-ios","category-spritekit","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/1230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1230"}],"version-history":[{"count":4,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/1230\/revisions"}],"predecessor-version":[{"id":1234,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/1230\/revisions\/1234"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}