Bug 247736

Summary: [WebAudio][GStreamer] Use single non-interleaved appsrc instead of multi appsrcs with audiointerleave
Product: WebKit Reporter: Bastian Krause <bst>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: philn, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=247440

Description Bastian Krause 2022-11-10 08:27:35 PST
GStreamer 1.16 brought support for planar (non-interleaved) raw audio. Let's use that to simplify the "1 appsrc per channel + audiointerleave" approach to a single appsrc with non-interleaved layout.

We do not need to keep the appsrcs and mapped buffers per channel around which lets us drop a bunch of code.

This approach cuts the overhead the GStreamer pipeline causes on the WPEWebProcess in half on an NXP i.MX 6 DualLite.
Comment 1 Bastian Krause 2022-11-10 08:29:49 PST
Pull request: https://github.com/WebKit/WebKit/pull/6350
Comment 2 EWS 2022-11-14 04:34:29 PST
Committed 256648@main (63076adef16d): <https://commits.webkit.org/256648@main>

Reviewed commits have been landed. Closing PR #6350 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-11-14 04:35:23 PST
<rdar://problem/102315904>