<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aryzae</author_name>
  <author_url>https://blog.hatena.ne.jp/aryzae/</author_url>
  <blog_title>面白きことは良きことなり</blog_title>
  <blog_url>https://aryzae.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift2.0</anon>
    <anon>Xcode7</anon>
    <anon>備忘録</anon>
  </categories>
  <description>結論：インスタンスはプロパティで保持しろ do { let player = try AVAudioPlayer(contentsOfURL: fileUrl) player.volume = 1.0 player.numberOfLoops = 0 guard player.prepareToPlay() else { return } player.play() } catch let error as NSError { print(error.localizedDescription) } こんな処理を書いて音が鳴らない…なんで？としょうもないところで悩んだ。 シミュレーターだから？実…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faryzae.hatenablog.com%2Fentry%2F2016%2F09%2F03%2F210000&quot; title=&quot;AVAudioPlayerで音が鳴らなかった問題 - 面白きことは良きことなり&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-09-03 21:00:00</published>
  <title>AVAudioPlayerで音が鳴らなかった問題</title>
  <type>rich</type>
  <url>https://aryzae.hatenablog.com/entry/2016/09/03/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
