aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/channelmergernode/index.html
blob: 784fde0bc05a04213f2f4052eec50d5f0bf9b291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
title: ChannelMergerNode
slug: Web/API/ChannelMergerNode
translation_of: Web/API/ChannelMergerNode
---
<p>{{APIRef("Web Audio API")}}</p>

<p><code>ChannelMergerNode</code>インタフェースは、反対の機能の{{domxref("ChannelSplitterNode")}}と組み合わせて使用されることが多く、さまざまなモノラル入力を単一の出力に再結合します。 各入力は、出力のチャンネルを埋めるために使用されます。 これは各チャンネルに別々にアクセスするのに便利です、つまり 各チャンネルでゲインを別々に制御する必要がある場合にミキシングするのに有効です。</p>

<p><img alt="" src="https://mdn.mozillademos.org/files/9709/WebAudioMerger.png" style="display: block; height: 216px; margin: 0px auto; width: 286px;"></p>

<p>もし<code>ChannelMergerNode</code>に単一の出力があるが、マージするチャンネルと同じ数の入力がある場合、入力数はそのコンストラクタのパラメータおよび{{domxref("AudioContext.createChannelMerger")}}の呼び出しとして定義されます。 値が指定されていない場合は、デフォルトの6になります。</p>

<p><code>ChannelMergerNode</code>を使用すると、レンダリングハードウェアが処理できるよりも多くのチャンネルで出力を作成することが可能です。 その場合、シグナルが{{domxref("AudioContext.listener")}} オブジェクトに送信されると、余分なチャンネルは無視されます。</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">入力数</th>
   <td>variable; default to <code>6</code>.</td>
  </tr>
  <tr>
   <th scope="row">出力数</th>
   <td><code>1</code></td>
  </tr>
  <tr>
   <th scope="row">チャンネルカウントモード</th>
   <td><code>"max"</code></td>
  </tr>
  <tr>
   <th scope="row">チャンネルカウント</th>
   <td><code>2 </code>(デフォルトのカウントモードでは使用されません)</td>
  </tr>
  <tr>
   <th scope="row">チャンネル判別</th>
   <td><code>"speakers"</code></td>
  </tr>
 </tbody>
</table>

<h2 id="Constructor">Constructor</h2>

<dl>
 <dt>{{domxref("ChannelMergerNode.ChannelMergerNode()", "ChannelMergerNode()")}}</dt>
 <dd>新しい<code>ChannelMergerNode</code>オブジェクトインスタンスを作成します。</dd>
</dl>

<h2 id="Properties">Properties</h2>

<p>特定のプロパティはありません。 親である<em>{{domxref("AudioNode")}}</em>からプロパティを継承しています。</p>

<h2 id="Methods">Methods</h2>

<p>特定のメソッドはありません。 親である<em>{{domxref("AudioNode")}}</em>からメソッドを継承しています。</p>

<h2 id="Example">Example</h2>

<p>{{page("/en-US/docs/Web/API/AudioContext.createChannelMerger","Example")}}</p>

<h2 id="Specifications">Specifications</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-channelmergernode-interface', 'ChannelMergerNode')}}</td>
   <td>{{Spec2('Web Audio API')}}</td>
   <td> </td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>


<p>{{Compat("api.ChannelMergerNode")}}</p>
</div>

<h2 id="See_also">See also</h2>

<ul>
 <li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
</ul>