From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/audiobuffersourcenode/stop/index.html | 119 +++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 files/ja/web/api/audiobuffersourcenode/stop/index.html (limited to 'files/ja/web/api/audiobuffersourcenode/stop') diff --git a/files/ja/web/api/audiobuffersourcenode/stop/index.html b/files/ja/web/api/audiobuffersourcenode/stop/index.html new file mode 100644 index 0000000000..0e40d267b8 --- /dev/null +++ b/files/ja/web/api/audiobuffersourcenode/stop/index.html @@ -0,0 +1,119 @@ +--- +title: AudioBufferSourceNode.stop() +slug: Web/API/AudioBufferSourceNode/stop +translation_of: Web/API/AudioScheduledSourceNode/stop +--- +

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

+ +
+

インターフェースのstop()メソッドは、オーディオバッファの再生を停止させるために使われます。

+
+ +

構文

+ +
var source = audioCtx.createBufferSource();
+source.stop(when);
+
+ +

+ +

最も単純なオーディオバッファ再生の停止方法—この場合は何もパラメータを指定する必要はありません。

+ +
source.stop();
+ +

しばらく後に停止させたい場合は、引数として秒数を指定します。

+ +
source.stop(3);
+ +
+

注: stop()の使い方の完全な例はAudioContext.decodeAudioDataを参照してください。コードをすぐに実行することや、ソースコードを閲覧することもできます。

+
+ +

引数

+ +
+
when
+
whenパラメータは、再生をいつ停止するかを決定します。指定の時間を経過すると、再生はすぐに停止します。このメソッドが2回以上呼ばれると、例外が発生します
+
+ +

戻り値

+ +

なし

+ +

使用

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Web Audio API', '#widl-AudioBufferSourceNode-stop-void-double-when', 'stop()')}}{{Spec2('Web Audio API')}} 
+ +

ブラウザ互換性

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support14 {{property_prefix("webkit")}}23{{CompatNo}}15 {{property_prefix("webkit")}}
+ 22 (unprefixed)
6 {{property_prefix("webkit")}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChromeFirefox Mobile (Gecko)Firefox OSIE PhoneOpera MobileSafari Mobile
Basic support{{CompatNo}}28 {{property_prefix("webkit")}}251.2{{CompatNo}}{{CompatNo}}6 {{property_prefix("webkit")}}
+
+ +

参考

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