aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/audiodestinationnode/maxchannelcount
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/audiodestinationnode/maxchannelcount
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/audiodestinationnode/maxchannelcount')
-rw-r--r--files/ja/web/api/audiodestinationnode/maxchannelcount/index.html113
1 files changed, 113 insertions, 0 deletions
diff --git a/files/ja/web/api/audiodestinationnode/maxchannelcount/index.html b/files/ja/web/api/audiodestinationnode/maxchannelcount/index.html
new file mode 100644
index 0000000000..d621bbf4ff
--- /dev/null
+++ b/files/ja/web/api/audiodestinationnode/maxchannelcount/index.html
@@ -0,0 +1,113 @@
+---
+title: AudioDestinationNode.maxChannelCount
+slug: Web/API/AudioDestinationNode/maxChannelCount
+translation_of: Web/API/AudioDestinationNode/maxChannelCount
+---
+<p>{{ APIRef("Web Audio API") }}</p>
+
+<div>
+<p>{{ domxref("AudioDestinationNode") }}インターフェースの<code>maxchannelCount</code>プロパティは、<code>unsigned long</code>で表された物理的なデバイスが扱えるチャンネルの最大数です。</p>
+
+<p>{{domxref("AudioNode.channelCount")}}プロパティは0からこの値の間(両端を含む)です。もし{{domxref("OfflineAudioContext")}}のように<code>maxChannelCount</code>が0ならば、チャンネルの数は変えられません。</p>
+</div>
+
+<h2 id="構文">構文</h2>
+
+<pre class="brush: js">var audioCtx = new AudioContext();
+var myDestination = audioCtx.destination;
+myDestination.maxChannelCount = 2;
+</pre>
+
+<h3 id="値">値</h3>
+
+<p><code>unsigned long</code></p>
+
+<h2 id="例">例</h2>
+
+<p>次の例は単純な設定です。<code>AudioDestinationNode</code>の<code>maxChannelCount</code>を2にしています。</p>
+
+<pre class="brush: js">var audioCtx = new AudioContext();
+var source = audioCtx.createMediaElementSource(myMediaElement);
+source.connect(gainNode);
+audioCtx.destination.maxChannelCount = 2;
+gainNode.connect(audioCtx.destination);</pre>
+
+<p>完全な実装は、MDN Web Audioの<a class="external external-icon" href="http://mdn.github.io/voice-change-o-matic/">Voice-change-o-matic</a>や<a class="external external-icon" 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', '#widl-AudioDestinationNode-maxChannelCount', 'maxChannelCount')}}</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>{{CompatChrome(10.0)}}{{property_prefix("webkit")}}</td>
+ <td>{{CompatGeckoDesktop(25.0)}} </td>
+ <td>{{CompatNo}}</td>
+ <td>15.0{{property_prefix("webkit")}}<br>
+ 22 (unprefixed)</td>
+ <td>6.0{{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>Firefox Mobile (Gecko)</th>
+ <th>Firefox OS</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ <th>Chrome for Android</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatUnknown}}</td>
+ <td>26.0</td>
+ <td>1.2</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>33.0</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<h2 id="参考">参考</h2>
+
+<ul>
+ <li><a href="/en-US/docs/Web_Audio_API/Using_Web_Audio_API">Using the Web Audio API</a></li>
+</ul>