aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api
diff options
context:
space:
mode:
authorCor <83723320+logic-finder@users.noreply.github.com>2021-11-30 20:23:22 +0900
committerGitHub <noreply@github.com>2021-11-30 20:23:22 +0900
commita15843947cdf8c8f12f1247e67d637fde38b8e28 (patch)
treef5feb29f38730063b19ef5636762416cf2a05987 /files/ko/web/api
parent42c36d1b37fdc718c75e24ed1714d1b1c3927853 (diff)
downloadtranslated-content-a15843947cdf8c8f12f1247e67d637fde38b8e28.tar.gz
translated-content-a15843947cdf8c8f12f1247e67d637fde38b8e28.tar.bz2
translated-content-a15843947cdf8c8f12f1247e67d637fde38b8e28.zip
translate the below document. (#3128)
AudioNode.numberOfInputs
Diffstat (limited to 'files/ko/web/api')
-rw-r--r--files/ko/web/api/audionode/numberofinputs/index.md53
1 files changed, 53 insertions, 0 deletions
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)