Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e522465fce971a5e3b9ed3b3bd48314164f1e053
https://github.com/WebKit/WebKit/commit/e522465fce971a5e3b9ed3b3bd48314164f1e053
Author: Youenn Fablet <[email protected]>
Date: 2026-05-12 (Tue, 12 May 2026)
Changed paths:
M Source/WebCore/platform/audio/cocoa/AudioDecoderCocoa.cpp
M Source/WebCore/platform/audio/cocoa/AudioEncoderCocoa.cpp
M Source/WebCore/platform/audio/cocoa/AudioSampleBufferConverter.h
M Source/WebCore/platform/audio/cocoa/AudioSampleBufferConverter.mm
M Source/WebCore/platform/mediarecorder/MediaRecorderPrivateEncoder.cpp
M Source/WebCore/platform/mediarecorder/MediaRecorderPrivateEncoder.h
Log Message:
-----------
Refactor AudioSampleBufferConverter so that it takes a Function as input
rdar://176445671
https://bugs.webkit.org/show_bug.cgi?id=314305
Reviewed by Jean-Yves Avenard.
We update AudioSampleBufferConverter to take a Function instead of a C function
and a pointer.
This allows to align with safer CPP guidelines by using the classic weak
pointer/ref approach in the Function.
We make sure to keep the existing safety mechanisms, in particular when calling
the callback.
Covered by existing tests.
Canonical link: https://commits.webkit.org/313066@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications