March Docs

Arcade.Web.Audio

Types

typeAudioSetupAudioSetup = {#

What the game decides about its speakers: the AudioContext's sample rate (the synth's own, Arcade.Synth.rate()), the output gain, the URL of its worklet build, the AudioWorkletProcessor name that build registers, and the globalThis name the playtest reads ({ log, stats }) under.

Functions

fncame_upcame_up() : ()#
fninstallinstall(setup : AudioSetup, serve : List(AudioCmd(cue)) -> List(Float)) : ()#

this. serve is the main-thread fallback's audio callback (Arcade.Web.SynthHost.serve