Skip to content

Conversation

@maciejmakowski2003
Copy link
Collaborator

@maciejmakowski2003 maciejmakowski2003 commented Nov 13, 2025

Closes RNAA-344

⚠️ Breaking changes ⚠️

Introduced changes

  • add wave shaper node

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added/Conducted relevant tests
  • Performed self-review of the code
  • Updated Web Audio API coverage
  • Added support for web

@maciejmakowski2003 maciejmakowski2003 added the feature New feature label Nov 21, 2025
@maciejmakowski2003 maciejmakowski2003 marked this pull request as ready for review November 22, 2025 19:48
@maciejmakowski2003
Copy link
Collaborator Author

example will be removed after review.


export interface IWaveShaperNode extends IAudioNode {
readonly curve: Float32Array | null;
oversample: OverSampleType;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without import it defaults to web audio api type

Comment on lines +46 to +63
### `OverSampleType`

<details>

**Acceptable values:**
- `none`

Do not oversample.

- `2x`

Oversample two times.

- `4x`

Oversample four times.

</details>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personally, I think pasting the typescript interface definition and commenting inside would me more readable and this is the approach in other examples

Comment on lines +54 to +55
auto arrayBuffer =
args[0].getObject(runtime).getPropertyAsObject(runtime, "buffer").getArrayBuffer(runtime);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typescript allow pass of null value, but you are not checking its existence and passing null, crashes the app

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

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants