Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c2c858a8f87c1ac084b5bf77b8b463585073d71c
https://github.com/WebKit/WebKit/commit/c2c858a8f87c1ac084b5bf77b8b463585073d71c
Author: Ahmad Saleem <[email protected]>
Date: 2026-07-28 (Tue, 28 Jul 2026)
Changed paths:
M
Source/WebCore/platform/mediastream/cocoa/RealtimeIncomingAudioSourceCocoa.cpp
Log Message:
-----------
RealtimeIncomingAudioSourceCocoa::OnData rescales the frame counter against
the already-updated sample rate, making it a no-op
https://bugs.webkit.org/show_bug.cgi?id=320049
rdar://182986735
Reviewed by Youenn Fablet.
m_sampleRate was overwritten with the new sampleRate before it was
used as the divisor in the frame-count rebase, so the computation
became m_numberOfFrames * r / r — always equal to the original value
instead of rescaling the fallback frame counter across a sample-rate
change. This only affects the timestamp computed when no audio
module is attached yet.
Capture the previous sample rate before overwriting m_sampleRate and
use it as the divisor.
*
Source/WebCore/platform/mediastream/cocoa/RealtimeIncomingAudioSourceCocoa.cpp:
(WebCore::RealtimeIncomingAudioSourceCocoa::OnData):
Canonical link: https://commits.webkit.org/318050@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications