BaseAudioContext: phương thức createConstantSource()
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
Phương thức createConstantSource()
của giao diện BaseAudioContext tạo một đối tượng
ConstantSourceNode, là một nguồn âm thanh liên tục xuất ra một tín hiệu
âm thanh đơn âm (một kênh) mà mọi mẫu đều có cùng một giá trị.
Note:
Hàm dựng ConstantSourceNode()
là cách được khuyến nghị để tạo một ConstantSourceNode; xem
Tạo một AudioNode.
Cú pháp
js
createConstantSource()
Tham số
Không có.
Giá trị trả về
Một thể hiện ConstantSourceNode.
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Web Audio API> # dom-baseaudiocontext-createconstantsource> |