← API
Symbol

StreamSound

Stream a long media file through HTMLAudioElement → MediaElementAudioSource. Use for music tracks > 30s where decoding the whole file into RAM (the loadSound path) would waste memory and stall on iOS. The element handles progressive download and seek; we just route its output into the engine's bus graph so it picks up the same FX/sidechain as buffer-based voices. Created lazily — the underlying MediaElementAudioSource is only built on first play(), since it can't be reattached to a different bus once created.

Members

  • constructor
  • name
  • currentTime
  • duration
  • paused
  • dispose
  • fade
  • pause
  • play
  • seek
  • setVolume
  • stop