-
-
Notifications
You must be signed in to change notification settings - Fork 33
Feat/wave shaper #806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feat/wave shaper #806
Conversation
|
example will be removed after review. |
|
|
||
| export interface IWaveShaperNode extends IAudioNode { | ||
| readonly curve: Float32Array | null; | ||
| oversample: OverSampleType; |
There was a problem hiding this comment.
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
| ### `OverSampleType` | ||
|
|
||
| <details> | ||
|
|
||
| **Acceptable values:** | ||
| - `none` | ||
|
|
||
| Do not oversample. | ||
|
|
||
| - `2x` | ||
|
|
||
| Oversample two times. | ||
|
|
||
| - `4x` | ||
|
|
||
| Oversample four times. | ||
|
|
||
| </details> |
There was a problem hiding this comment.
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
| auto arrayBuffer = | ||
| args[0].getObject(runtime).getPropertyAsObject(runtime, "buffer").getArrayBuffer(runtime); |
There was a problem hiding this comment.
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
Closes RNAA-344
Introduced changes
Checklist