Examples
import { AudioOscillator, AudioOscillatorType } from '@wimaengine/audio'
import { Timer, TimerMode } from '@wimaengine/time'
// AudioPlugin registers playOscillators in the Update schedule.
function spawnSquareTone(world) {
return world.spawn([
new AudioOscillator({ type: AudioOscillatorType.Square, frequency: 220 }),
new Timer({ duration: 1, mode: TimerMode.Once })
])
}