aboutsummaryrefslogtreecommitdiff
path: root/webAO/components/audioChannels.js
blob: 9eca8600c54cc45f9f8d403beff4cfc6f3145e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;