Bug 143190

Summary: [iOS] When Web Audio is interrupted by a phone call, it cannot be restarted.
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric.carlson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
darin: review+
Patch for landing none

Description Jer Noble 2015-03-28 23:31:17 PDT
[iOS] When Web Audio is interrupted by a phone call, it cannot be restarted.
Comment 1 Jer Noble 2015-03-29 08:03:17 PDT
Created attachment 249682 [details]
Patch
Comment 2 Jer Noble 2015-03-29 08:08:28 PDT
rdar://problem/16955315
Comment 3 Jer Noble 2015-03-29 08:13:23 PDT
Created attachment 249683 [details]
Patch
Comment 4 Jer Noble 2015-03-29 08:32:38 PDT
Created attachment 249684 [details]
Patch
Comment 5 Jer Noble 2015-03-29 11:55:24 PDT
Created attachment 249686 [details]
Patch
Comment 6 Jer Noble 2015-03-29 13:55:21 PDT
Created attachment 249698 [details]
Patch
Comment 7 Darin Adler 2015-03-29 16:34:42 PDT
Comment on attachment 249698 [details]
Patch

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

> Source/WebCore/Modules/webaudio/AudioContext.h:348
> +    bool m_isDeletionScheduled = { false };
> +    bool m_isStopScheduled = { false };
> +    bool m_isInitialized = { false };
> +    bool m_isAudioThreadFinished = { false };
> +    bool m_automaticPullNodesNeedUpdating = { false };
> +    bool m_isOfflineContext = { false };

I don’t think you need the "="; in fact I didn’t even know you could include them.
Comment 8 Jer Noble 2015-03-29 17:07:39 PDT
Comment on attachment 249698 [details]
Patch

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

>> Source/WebCore/Modules/webaudio/AudioContext.h:348
>> +    bool m_isOfflineContext = { false };
> 
> I don’t think you need the "="; in fact I didn’t even know you could include them.

After a little sleuthing, it looks like C++11 both added the `type name { value }` syntax, and also loosened the requirements for the `type name = value` syntax, allowing it for non-const, non-static members.  Still, I'll switch these all to the former syntax.
Comment 9 Jer Noble 2015-03-29 17:13:07 PDT
Created attachment 249704 [details]
Patch for landing
Comment 10 WebKit Commit Bot 2015-03-30 09:15:48 PDT
Comment on attachment 249704 [details]
Patch for landing

Clearing flags on attachment: 249704

Committed r182141: <http://trac.webkit.org/changeset/182141>