Skip to content

The getParameterInfo method does not return a valid WamParameterInfoMap #10

Description

@Jempasam

The WamParameterInfo objects returned by getParameterInfo are missing the valueString and normalize methods. As a result, they do not conform to the API.

This issue can be observed using the following JavaScript snippet:

(async()=>{
  const audioContext = new AudioContext();
  const { default: initializeWamHost } = await import("https://www.webaudiomodules.com/sdk/2.0.0-alpha.6/src/initializeWamHost.js");
  const [group] = await initializeWamHost(audioContext, "example");
  const factory = (await import("https://jempasam.github.io/cardboardwam/dist/index.mjs")).default;
  const wam = await factory.createInstance(group, audioContext);
  console.log(await wam.audioNode.getParameterInfo());
})();

This script demonstrates that the WAM instance correctly uses the SDK, yet the returned WamParameterInfo objects do not fully implement the expected API.

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