Skip to content

AudioBuffer

pieisland edited this page Dec 13, 2020 · 1 revision

AudioBuffer

์ •์˜์™€ ํŠน์ง•

  • ๋ฉ”๋ชจ๋ฆฌ์— ์ƒ์ฃผํ•˜๋Š” ์ž‘์€ audio asset.
  • AudioContext.decodeAudioData() ์— ์˜ํ•ด ๋งŒ๋“ค์–ด์ง€๊ฑฐ๋‚˜ AudioContext.createBurrer()๋กœ ๋งŒ๋“ค์–ด์ง„๋‹ค.
  • AudioBufferSourceNode.buffer = AudioBuffer ๋กœ ๋„ฃ์–ด์„œ ์žฌ์ƒ๋  ์ˆ˜ ์žˆ๋‹ค.

properties

sampleRate

  • ์ดˆ๋‹น sample ์ˆ˜.

length

  • ๋ฒ„ํผ์— ์ €์žฅ๋œ PCM๋ฐ์ดํ„ฐ์˜ ๊ธธ์ด(์ƒ˜ํ”Œ ํ”„๋ ˆ์ž„)์„ ๋‚˜ํƒ€๋‚ด๋Š” ์ •์ˆ˜.
  • sample์˜ ๊ฐœ์ˆ˜.

duration

  • ๋ฒ„ํผ์— ์ €์žฅ๋œ PCM ๋ฐ์ดํ„ฐ์˜ ๊ธฐ๊ฐ„(์ดˆ)์„ ๋‚˜ํƒ€๋‚ด๋Š” double.

numberOfChannels

  • ๋ฒ„ํผ์— ์ €์žฅ๋œ PCM ๋ฐ์ดํ„ฐ๊ฐ€ ์„ค๋ช…ํ•˜๋Š” ๊ฐœ๋ณ„ ์˜ค๋””์˜ค ์ฑ„๋„ ์ˆ˜๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ์ •์ˆ˜.

Methods

gethannelData()

  • ๋งค๊ฐœ ๋ณ€์ˆ˜๋กœ ์ •์˜ ๋œ ์ฑ„๋„๊ณผ ๊ด€๋ จ๋œ PCM ๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•˜๋Š” Float32Array๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค.

๐Ÿ“„ Documents

๐Ÿ“Œ Rules

๐Ÿ“ Agile Process

๐Ÿ“† Week1 Meeting Log
๐Ÿ“† Week2 Meeting Log
๐Ÿ“† Week3 Meeting Log
๐Ÿ“† Week4 Meeting Log
๐Ÿ“† Week5 Meeting Log

๐Ÿ“Ž Research

๐Ÿ” References

๐Ÿ‘ซํ”ผ์–ด์„ธ์…˜

๐Ÿ“† Week2 Peer Session
๐Ÿ“† Week3 Peer Session
๐Ÿ“† Week4 Peer Session

๐Ÿค” ํšŒ๊ณ 

๐Ÿ“ข ๊ธฐ์ˆ ๊ณต์œ 

๐Ÿ”‰ Web Audio API

๐Ÿš€Custom Element

๐Ÿ™ˆ Activity

๐Ÿ—‘๏ธ ํœด์ง€ํ†ต

Clone this wiki locally