Taos API Reference
    Preparing search index...

    Class SoundHandle

    A single playing voice: BufferSource → Gain → [Panner] → destination. Returned by AudioEngine.play / AudioEngine.playAt so callers can control or stop the sound. Disposes itself when playback ends; the owning engine prunes finished handles and advances any follow target.

    Index

    Constructors

    Properties

    onEnded: (() => void) | null = null

    Invoked once when the voice ends (naturally or via stop).

    Accessors

    Methods

    • Set the per-voice volume, optionally ramping over ramp seconds.

      Parameters

      • volume: number
      • ramp: number = 0

      Returns void

    • Stop the voice, optionally fading out over fade seconds first.

      Parameters

      • fade: number = 0

      Returns void