Bug 216393

Summary: AudioContext does not start rendering until an AudioNode is constructed
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, esprehn+autocc, ews-watchlist, ggaren, glenn, jer.noble, kangil.han, philipj, sergio, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 212611    
Attachments:
Description Flags
Patch eric.carlson: review+

Description Chris Dumez 2020-09-10 18:13:43 PDT
AudioContext does not start rendering until an AudioNode is constructed. This is not as per specification and does not match Chrome's behavior.
Comment 1 Chris Dumez 2020-09-10 18:15:55 PDT
Created attachment 408503 [details]
Patch
Comment 2 Eric Carlson 2020-09-10 20:54:42 PDT
Comment on attachment 408503 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=408503&action=review

> Source/WebCore/Modules/webaudio/BaseAudioContext.cpp:144
> +    // Lazy initialization is what starts rendering so we schedule a task here to make sure lazy

s/initialization is what starts/initialization starts/
Comment 3 Chris Dumez 2020-09-11 08:29:00 PDT
Committed r266922: <https://trac.webkit.org/changeset/266922>
Comment 4 Radar WebKit Bug Importer 2020-09-11 08:29:13 PDT
<rdar://problem/68711478>