@descript/web-audio-js
Advanced tools
Comparing version 0.15.3-patched.5 to 0.15.3-patched.6
{ | ||
"name": "@descript/web-audio-js", | ||
"description": "Pure JS implementation of the Web Audio API", | ||
"version": "0.15.3-patched.5", | ||
"version": "0.15.3-patched.6", | ||
"authors": [ | ||
@@ -6,0 +6,0 @@ "Nao Yonamine <mohayonao@gmail.com>", |
@@ -233,2 +233,17 @@ 'use strict'; | ||
it('linearRampToValueAtTime after setValue', () => { | ||
const param = new AudioParam(context, { | ||
rate: CONTROL_RATE, | ||
defaultValue: 0, | ||
}); | ||
param.setValue(0.5); | ||
param.linearRampToValueAtTime(0.1, 1); | ||
expect(param.getTimeline().map(pluck)).toEqual([ | ||
// startTime, endTime, startValue, endValue | ||
[LINEAR_RAMP_TO_VALUE_AT_TIME, fr(0), fr(1), 0.5, 0.1], | ||
]); | ||
}); | ||
it('exponentialRampToValueAtTime', () => { | ||
@@ -235,0 +250,0 @@ const param = new AudioParam(context, { |
@@ -142,3 +142,3 @@ 'use strict'; | ||
endFrame: Math.round(endTime * this.sampleRate), | ||
startValue: this._defaultValue, | ||
startValue: this._value, | ||
endValue: value, | ||
@@ -145,0 +145,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2612954
79094
499
1