<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>enchant.js</anon>
  </categories>
  <description>enchant.jsでサウンドを再生するには、まずSoundオブジェクトのload()メソッドでサウンドファイルを読み込んでから、play()で再生する。 var se = Sound.load(&quot;test.wav&quot;); se.play(); 実際に試してみたところ、たしかに音は再生されるが、再生中に再びplay()を読んでも再生されなかった。連続して何回も鳴らしたい場合は1回stop()を読んで停止してからにするか、別オブジェクトを作成するなどしなければならないだろう。 また、Google Chromeでは鳴ったが、Safariでは鳴らなかった。環境によって違うようなのでちょっと使いづらいか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20120724%2F1343149083&quot; title=&quot;サウンドの再生 - ゲームが作れるようになるまでがんばる日記&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>2012-07-24 01:58:03</published>
  <title>サウンドの再生</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20120724/1343149083</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
