diff options
| author | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-18 00:06:11 -0400 |
|---|---|---|
| committer | caleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu> | 2022-03-18 00:06:11 -0400 |
| commit | 47ab340c76e6174f0f94fb4cbfec1540b6a18807 (patch) | |
| tree | bab332762cb740d383215b8383015b84df3942b7 /webAO/components/audioChannels.js | |
| parent | 142068cf4786ebc67b10289af273148a855b31b4 (diff) | |
Moving to audio tags
Diffstat (limited to 'webAO/components/audioChannels.js')
| -rw-r--r-- | webAO/components/audioChannels.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webAO/components/audioChannels.js b/webAO/components/audioChannels.js new file mode 100644 index 0000000..1979653 --- /dev/null +++ b/webAO/components/audioChannels.js @@ -0,0 +1,13 @@ +/** + * + * @param {number} amountOfChannels Amount of Blips to put on page + */ +const createAudioChannels = (amountOfChannels) => { + for (let i = 0; i < amountOfChannels; i++) { + const audioChannel = document.createElement('audio') + audioChannel.setAttribute('class', 'audioChannel') + document.body.appendChild(audioChannel) + } +} +createAudioChannels(4) +export default createAudioChannels |
