property Audio.config

オーディオのデフォルト設定(AudioContextや各チャンネルの波形・音量)だよ ⚙️🔊

デフォルト値:

  • audioContext: new AudioContext()
  • channelParams: [{ type: "square", gain: 0.125 }, { type: "square", gain: 0.125 }]

Properties

audioContext: AudioContext
channelParams: { type: string; gain: number; }[]

Usage

import { Audio } from ".";