<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kurene</author_name>
  <author_url>https://blog.hatena.ne.jp/Kurene/</author_url>
  <blog_title>Wizard Notes</blog_title>
  <blog_url>https://www.wizard-notes.com/</blog_url>
  <categories>
    <anon>javascript</anon>
    <anon>Programming</anon>
    <anon>音楽プログラミング</anon>
    <anon>Web Audio API</anon>
    <anon>WebApp</anon>
  </categories>
  <description>久しぶりに Web Audio API を使ったコードを書いていたら、音を読み込んで再生するだけの簡単なサンプルコードでも音が鳴らないという現象に遭遇しました。 class AudioPlayer { constructor() { this.isPlaying = false; } init = () =&gt; { window.AudioContext = window.AudioContext || window.webkitAudioContext; this.context = new AudioContext(); } setBuffer = async () =&gt; { const r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.wizard-notes.com%2Fentry%2Fjavascript%2Fweb-audio-api-chrome-user-interaction&quot; title=&quot;Chromeで Web Audio API の音が鳴らない現象への対処 (Warning: The AudioContext was not allowed to start) - Wizard Notes&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>https://cdn-ak.f.st-hatena.com/images/fotolife/K/Kurene/20210805/20210805005516.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-08-05 01:19:33</published>
  <title>Chromeで Web Audio API の音が鳴らない現象への対処 (Warning: The AudioContext was not allowed to start)</title>
  <type>rich</type>
  <url>https://www.wizard-notes.com/entry/javascript/web-audio-api-chrome-user-interaction</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
