Skip to content

Clarify that PeriodicWave real[0] is ignored - #2710

Merged
padenot merged 2 commits into
WebAudio:mainfrom
padenot:pcc-80c23e1d
Nov 6, 2026
Merged

padenot merged 2 commits into
WebAudio:mainfrom
padenot:pcc-80c23e1d

Conversation

@padenot

@padenot padenot commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Closes #2530


Preview | Diff

The constructor sets index 0 of real and imag to 0, so a PeriodicWave
cannot produce a DC-offset. Point authors to ConstantSourceNode instead.

Closes WebAudio#2530

@mjwilson-google mjwilson-google left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with optional extension.

Comment thread index.bs Resolved
@padenot
padenot merged commit 585df86 into WebAudio:main Nov 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unclearness regarding the DC-offset in PeriodicWave

2 participants