From a15843947cdf8c8f12f1247e67d637fde38b8e28 Mon Sep 17 00:00:00 2001 From: Cor <83723320+logic-finder@users.noreply.github.com> Date: Tue, 30 Nov 2021 20:23:22 +0900 Subject: translate the below document. (#3128) AudioNode.numberOfInputs --- files/ko/web/api/audionode/numberofinputs/index.md | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 files/ko/web/api/audionode/numberofinputs/index.md (limited to 'files/ko/web/api') diff --git a/files/ko/web/api/audionode/numberofinputs/index.md b/files/ko/web/api/audionode/numberofinputs/index.md new file mode 100644 index 0000000000..c5befc35fc --- /dev/null +++ b/files/ko/web/api/audionode/numberofinputs/index.md @@ -0,0 +1,53 @@ +--- +title: AudioNode.numberOfInputs +slug: Web/API/AudioNode/numberOfInputs +tags: + - API + - AudioNode + - Property + - Reference + - Web Audio API + - numberOfInputs +browser-compat: api.AudioNode.numberOfInputs +--- +{{APIRef("Web Audio API")}} + +{{domxref("AudioNode")}} 인터페이스의 `numberOfInputs` 속성은 해당 노드에 공급되는 입력의 수를 반환합니다. 소스 노드는 `numberOfInputs` 속성의 값이 0인 노드로 정의됩니다. + +## 구문 + +```js +var numInputs = audioNode.numberOfInputs; +``` + +### 값 + +integer ≥ 0. + +## 예제 + +```js +const audioCtx = new AudioContext(); + +const oscillator = audioCtx.createOscillator(); +const gainNode = audioCtx.createGain(); + +oscillator.connect(gainNode).connect(audioCtx.destination); + +console.log(oscillator.numberOfInputs); // 0 +console.log(gainNode.numberOfInputs); // 1 +console.log(audioCtx.destination.numberOfInputs); // 1 +``` + +## 명세서 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- [Web Audio + API 사용하기](/ko/docs/Web/API/Web_Audio_API/Using_Web_Audio_API) -- cgit v1.2.3-54-g00ecf