diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/audiodestinationnode/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/ja/web/api/audiodestinationnode/index.html')
-rw-r--r-- | files/ja/web/api/audiodestinationnode/index.html | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/files/ja/web/api/audiodestinationnode/index.html b/files/ja/web/api/audiodestinationnode/index.html new file mode 100644 index 0000000000..d6db3ee469 --- /dev/null +++ b/files/ja/web/api/audiodestinationnode/index.html @@ -0,0 +1,141 @@ +--- +title: AudioDestinationNode +slug: Web/API/AudioDestinationNode +translation_of: Web/API/AudioDestinationNode +--- +<p>{{APIRef("Web Audio API")}}</p> + +<div> +<p><code>AudioDestinationNode</code>インターフェースは、指定のコンテキストの音声の最後の目的地 - 通常はあなたのデバイスのスピーカーを表します。<code>OfflineAudioContext</code>と共に使えば、オーディオデータを「録音」するノードにもできます。</p> +</div> + +<p><code>AudioDestinationNode</code>には出力はなく(出力が<strong>あれば</strong>、これ以上AudioNodeに音声を結びつけることができません)、入力が1つあります。入力チャンネルの数は、0から<code>maxChannelCount</code>変数の間である必要があり、そうでなければ例外が発生します。</p> + +<p>指定の<code>AudioContext</code>の<code>AudioDestinationNode</code>は{{domxref("AudioContext.destination")}}プロパティで取得できます。</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">Number of inputs</th> + <td><code>1</code></td> + </tr> + <tr> + <th scope="row">Number of outputs</th> + <td><code>0</code></td> + </tr> + <tr> + <th scope="row">Channel count mode</th> + <td><code>"explicit"</code></td> + </tr> + <tr> + <th scope="row">Channel count</th> + <td><code>2</code></td> + </tr> + <tr> + <th scope="row">Channel interpretation</th> + <td><code>"speakers"</code></td> + </tr> + </tbody> +</table> + +<h2 id="プロパティ">プロパティ</h2> + +<p><em>親の{{domxref("AudioNode")}}のプロパティを継承しています。</em></p> + +<dl> + <dt>{{domxref("AudioDestinationNode.maxChannelCount")}}</dt> + <dd><code>unsigned long</code>で表された物理的なデバイスが扱えるチャンネルの最大数</dd> +</dl> + +<h2 id="メソッド">メソッド</h2> + +<p><em>固有のメソッドはありません。親の</em><em>{{domxref("AudioNode")}}</em>のメソッドを継承しています。</p> + +<h2 id="例">例</h2> + +<p><code>AudioDestinationNode</code>の設定には複雑なことはありません - デフォルトでユーザのシステム(例:スピーカー)を表しています。よって、数行のコードを書くだけで内部の音声を接続することができます:</p> + +<pre class="brush: js">var audioCtx = new AudioContext(); +var source = audioCtx.createMediaElementSource(myMediaElement); +source.connect(gainNode); +gainNode.connect(audioCtx.destination);</pre> + +<p>完全な実装は、MDN Web Audioの<a href="http://mdn.github.io/voice-change-o-matic/">Voice-change-o-matic</a>や<a href="http://mdn.github.io/violent-theremin/">Violent Theremin</a>のようなサンプルを参考にしてください。</p> + +<h2 id="仕様">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Web Audio API', '#the-audiodestinationnode-interface', 'AudioDestinationNode')}}</td> + <td>{{Spec2('Web Audio API')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="ブラウザ互換性">ブラウザ互換性</h2> + +<div>{{CompatibilityTable}}</div> + +<div id="compat-desktop"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari (WebKit)</th> + </tr> + <tr> + <td>Basic support</td> + <td>14 {{property_prefix("webkit")}}</td> + <td>23</td> + <td>{{CompatNo}}</td> + <td>15 {{property_prefix("webkit")}}<br> + 22 (unprefixed)</td> + <td>6 {{property_prefix("webkit")}}</td> + </tr> + </tbody> +</table> +</div> + +<div id="compat-mobile"> +<table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Android</th> + <th>Chrome</th> + <th>Firefox Mobile (Gecko)</th> + <th>Firefox OS</th> + <th>IE Phone</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Basic support</td> + <td>{{CompatNo}}</td> + <td>28 {{property_prefix("webkit")}}</td> + <td>25</td> + <td>1.2</td> + <td>{{CompatNo}}</td> + <td>{{CompatNo}}</td> + <td>6 {{property_prefix("webkit")}}</td> + </tr> + </tbody> +</table> +</div> + +<h2 id="参考">参考</h2> + +<ul> + <li><a href="/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li> +</ul> |