From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../maxchannelcount/index.html | 113 +++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 files/ja/web/api/audiodestinationnode/maxchannelcount/index.html (limited to 'files/ja/web/api/audiodestinationnode/maxchannelcount') 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 +--- +

{{ APIRef("Web Audio API") }}

+ +
+

{{ domxref("AudioDestinationNode") }}インターフェースのmaxchannelCountプロパティは、unsigned longで表された物理的なデバイスが扱えるチャンネルの最大数です。

+ +

{{domxref("AudioNode.channelCount")}}プロパティは0からこの値の間(両端を含む)です。もし{{domxref("OfflineAudioContext")}}のようにmaxChannelCountが0ならば、チャンネルの数は変えられません。

+
+ +

構文

+ +
var audioCtx = new AudioContext();
+var myDestination = audioCtx.destination;
+myDestination.maxChannelCount = 2;
+
+ +

+ +

unsigned long

+ +

+ +

次の例は単純な設定です。AudioDestinationNodemaxChannelCountを2にしています。

+ +
var audioCtx = new AudioContext();
+var source = audioCtx.createMediaElementSource(myMediaElement);
+source.connect(gainNode);
+audioCtx.destination.maxChannelCount = 2;
+gainNode.connect(audioCtx.destination);
+ +

完全な実装は、MDN Web AudioのVoice-change-o-maticViolent Thereminのようなサンプルを参考にしてください。

+ +

使用

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Web Audio API', '#widl-AudioDestinationNode-maxChannelCount', 'maxChannelCount')}}{{Spec2('Web Audio API')}} 
+ +

ブラウザ互換性

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(10.0)}}{{property_prefix("webkit")}}{{CompatGeckoDesktop(25.0)}} {{CompatNo}}15.0{{property_prefix("webkit")}}
+ 22 (unprefixed)
6.0{{property_prefix("webkit")}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}26.01.2{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}33.0
+
+ +

参考

+ + -- cgit v1.2.3-54-g00ecf