Bug 219561

Summary: Reduce memory copying in MultiChannelResampler::provideInputForChannel()
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, darin, eric.carlson, ggaren, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 219560    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Chris Dumez 2020-12-04 17:12:51 PST
Reduce memory copying in MultiChannelResampler::provideInputForChannel() by using the passed-in buffer as memory for the first channel in the AudioBus.
This way we avoid having to memcpy() the data for the first channel.
Comment 1 Chris Dumez 2020-12-04 17:15:51 PST
Created attachment 415478 [details]
Patch
Comment 2 Chris Dumez 2020-12-07 08:29:48 PST
Comment on attachment 415478 [details]
Patch

Clearing flags on attachment: 415478

Committed r270505: <https://trac.webkit.org/changeset/270505>
Comment 3 Chris Dumez 2020-12-07 08:29:50 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2020-12-07 08:30:19 PST
<rdar://problem/72048111>