diff options
author | logic-finder <logicseeker@naver.com> | 2021-11-16 17:43:17 +0900 |
---|---|---|
committer | Kyle <mkitigy@gmail.com> | 2021-11-29 00:22:45 +0900 |
commit | ce556d42c2d82aa3b60e65807ec35d083665c9e4 (patch) | |
tree | d05c192740b9733ae1982894ad5bbc1fa8750694 | |
parent | 78d90302e9d8918d169da21defceb069fa3d37a5 (diff) | |
download | translated-content-ce556d42c2d82aa3b60e65807ec35d083665c9e4.tar.gz translated-content-ce556d42c2d82aa3b60e65807ec35d083665c9e4.tar.bz2 translated-content-ce556d42c2d82aa3b60e65807ec35d083665c9e4.zip |
translate the below document.
AudioNode.context
-rw-r--r-- | files/ko/web/api/audionode/context/index.md | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/files/ko/web/api/audionode/context/index.md b/files/ko/web/api/audionode/context/index.md new file mode 100644 index 0000000000..0e83054cce --- /dev/null +++ b/files/ko/web/api/audionode/context/index.md @@ -0,0 +1,52 @@ +--- +title: AudioNode.context +slug: Web/API/AudioNode/context +tags: + - API + - AudioNode + - Context + - Property + - Reference + - Web Audio API +browser-compat: api.AudioNode.context +--- +{{APIRef("Web Audio API")}} + +{{domxref("AudioNode")}} 인터페이스의 읽기 전용 `context` 속성은 연관된 {{domxref("BaseAudioContext")}}를 반환하는데, BaseAudioContext는 이 노드가 관여하고 있는 프로세싱 그래프를 나타내는 객체입니다. + +## 구문 + +```js +var aContext = anAudioNode.context; +``` + +### 값 + +이 `AudioNode` 를 생성하기 위해 사용된 {{domxref("AudioContext")}} 또는 {{domxref("OfflineAudioContext")}} 객체. + +## 예제 + +```js +const AudioContext = window.AudioContext || window.webkitAudioContext; +const audioCtx = new AudioContext(); + +const oscillator = audioCtx.createOscillator(); +const gainNode = audioCtx.createGain(); +oscillator.connect(gainNode).connect(audioCtx.destination); + +console.log(oscillator.context); // AudioContext +console.log(oscillator.context === audioCtx); // true +``` + +## 명세서 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- [Web Audio + API 사용하기](/ko/docs/Web/API/Web_Audio_API/Using_Web_Audio_API) |