Skip to content

docs: loadSound should not use preload #106

Closed

Description

@ksen0
Image

Activity

  1. NisargJasani0602 commented on Jul 30, 2026

    @NisargJasani0602
    Contributor

    The loadSound() reference doc in SoundFile.js has been updated on main in commit 86c3bcf ("SoundFile refs now use async await for loadSound"). It no longer mentions preload() or a callback — it now documents calling loadSound() with await from an async setup().

  2. NisargJasani0602 commented on Jul 30, 2026

    @NisargJasani0602
    Contributor

    While checking for other stale references, I noticed four other files whose @example docs still call loadSound() inside function preload() {}, which is now inconsistent with the updated loadSound() behavior:

    src/effects/Panner.js (two examples)
    src/effects/Panner3D.js
    src/analysis/Amplitude.js
    src/effects/Gain.js
    I'll open a PR updating these to use the async function setup() + await loadSound(...) pattern, consistent with SoundFile.js, Reverb.js, and Delay.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions