[Webkit-unassigned] [Bug 264247] getOutputTimestamp() seems to use wrong time scale

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 22 21:01:42 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=264247

--- Comment #2 from Chris Dumez <cdumez at apple.com> ---
```
diff --git a/Source/WebCore/platform/audio/AudioDestinationResampler.cpp b/Source/WebCore/platform/audio/AudioDestinationResampler.cpp
index efd262000a29..257d72887a19 100644
--- a/Source/WebCore/platform/audio/AudioDestinationResampler.cpp
+++ b/Source/WebCore/platform/audio/AudioDestinationResampler.cpp
@@ -109,7 +109,7 @@ size_t AudioDestinationResampler::pullRendered(size_t numberOfFrames)
 bool AudioDestinationResampler::render(double sampleTime, MonotonicTime hostTime,  size_t framesToRender)
 {
     m_outputTimestamp = {
-        Seconds { sampleTime / sampleRate() },
+        Seconds { sampleTime },
         hostTime
     };
     // When there is a AudioWorklet, we do rendering on the AudioWorkletThread.
```
Need to write a test case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240223/19b47ed4/attachment.htm>


More information about the webkit-unassigned mailing list