Closed Bug 1456271 Opened 6 years ago Closed 6 years ago

new PeriodicWave(context) fails

Categories

(Core :: Web Audio, defect, P2)

57 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: toy.raymond, Assigned: padenot)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36

Steps to reproduce:

Run

c = new AudioContext()
n = new PeriodicWave(context)


Actual results:

Construction of the PeriodicWave fails with this error message:
IndexSizeError: Index or size is negative or greater than the allowed amount

Not sure what that really means


Expected results:

The periodicWave should have been constructed.  The spec says the options dictionary is optional, and if not given, a sine wave is constructed.

See https://webaudio.github.io/web-audio-api/#periodicwave, the note in step 3 of the construction algorithm.

Possibly related to 1324181
Component: Untriaged → Web Audio
Product: Firefox → Core
Rank: 15
Priority: -- → P2
Baku, the tests are being landed in web-platform-tests.
Comment on attachment 8981958 [details]
Bug 1456271 - Implement new behaviour of PeriodicWave ctor: not passing in any array makes it into a sine wave.

https://reviewboard.mozilla.org/r/247974/#review254082
Attachment #8981958 - Flags: review?(amarchesini) → review+
Assignee: nobody → padenot
Attachment #8992321 - Flags: review?(padenot)
Comment on attachment 8992321 [details]
Bug 1456271 - Ajust tests to reflect the alignment to the spec.

https://reviewboard.mozilla.org/r/257192/#review264004
Attachment #8992321 - Flags: review?(padenot) → review+
Pushed by paul@paul.cx:
https://hg.mozilla.org/integration/autoland/rev/b37a0606d6a0
Implement new behaviour of PeriodicWave ctor: not passing in any array makes it into a sine wave. r=baku
https://hg.mozilla.org/integration/autoland/rev/b99bd4121181
Ajust WPT expectations: the idl test for PeriodicWave now passes. r=padenot
Pushed by paul@paul.cx:
https://hg.mozilla.org/integration/autoland/rev/c6119be43135
Implement new behaviour of PeriodicWave ctor: not passing in any array makes it into a sine wave. r=baku
https://hg.mozilla.org/integration/autoland/rev/2ce1d3526399
Ajust tests to reflect the alignment to the spec. r=padenot
https://hg.mozilla.org/mozilla-central/rev/c6119be43135
https://hg.mozilla.org/mozilla-central/rev/2ce1d3526399
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Flags: needinfo?(padenot)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: