WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
232375
Ensure synchronized rendering of incoming audio tracks
https://bugs.webkit.org/show_bug.cgi?id=232375
Summary
Ensure synchronized rendering of incoming audio tracks
youenn fablet
Reported
2021-10-27 05:43:48 PDT
Ensure synchronized rendering of incoming audio tracks
Attachments
Patch
(53.75 KB, patch)
2021-10-28 00:28 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(53.99 KB, patch)
2021-10-28 01:28 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(54.10 KB, patch)
2021-10-28 05:31 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(54.08 KB, patch)
2021-10-28 06:52 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(54.75 KB, patch)
2021-10-29 05:47 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2021-10-28 00:28:44 PDT
Created
attachment 442682
[details]
Patch
youenn fablet
Comment 2
2021-10-28 01:28:55 PDT
Created
attachment 442683
[details]
Patch
youenn fablet
Comment 3
2021-10-28 05:31:35 PDT
Created
attachment 442694
[details]
Patch
youenn fablet
Comment 4
2021-10-28 06:52:58 PDT
Created
attachment 442703
[details]
Patch
Eric Carlson
Comment 5
2021-10-28 13:08:19 PDT
Comment on
attachment 442703
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=442703&action=review
r=me once the bots are happy
> Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCAudioModule.cpp:146 > + if (m_isRenderingIncomingAudio) > + m_incomingAudioMediaStreamTrackRendererUnit->newAudioChunkPushed(); > + m_currentAudioSampleCount += LibWebRTCAudioFormat::chunkSampleCount;
Is it correct to update m_currentAudioSampleCount after calling `newAudioChunkPushed`? In either case, it might be clearer to pass sample count to `newAudioChunkPushed()` rather than having it query the module.
youenn fablet
Comment 6
2021-10-29 05:47:02 PDT
(In reply to Eric Carlson from
comment #5
)
> Comment on
attachment 442703
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=442703&action=review
> > r=me once the bots are happy
Issue was with resetting the audio model when resetting the factory.
> > Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCAudioModule.cpp:146 > > + if (m_isRenderingIncomingAudio) > > + m_incomingAudioMediaStreamTrackRendererUnit->newAudioChunkPushed(); > > + m_currentAudioSampleCount += LibWebRTCAudioFormat::chunkSampleCount; > > Is it correct to update m_currentAudioSampleCount after calling > `newAudioChunkPushed`? In either case, it might be clearer to pass sample > count to `newAudioChunkPushed()` rather than having it query the module.
Right, passing the sample count to newAudioChunkPushed is a good idea. As of the order, I think it makes sense this way, we start calling newAudioChunkPushed with count = 0.
youenn fablet
Comment 7
2021-10-29 05:47:41 PDT
Created
attachment 442810
[details]
Patch for landing
EWS
Comment 8
2021-10-29 06:36:12 PDT
Committed
r285027
(
243671@main
): <
https://commits.webkit.org/243671@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 442810
[details]
.
Radar WebKit Bug Importer
Comment 9
2021-10-29 06:37:18 PDT
<
rdar://problem/84806583
>
youenn fablet
Comment 10
2021-11-07 23:45:45 PST
(In reply to youenn fablet from
comment #6
)
> (In reply to Eric Carlson from
comment #5
) > > Comment on
attachment 442703
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=442703&action=review
> > > > r=me once the bots are happy > > Issue was with resetting the audio model when resetting the factory. > > > > Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCAudioModule.cpp:146 > > > + if (m_isRenderingIncomingAudio) > > > + m_incomingAudioMediaStreamTrackRendererUnit->newAudioChunkPushed(); > > > + m_currentAudioSampleCount += LibWebRTCAudioFormat::chunkSampleCount; > > > > Is it correct to update m_currentAudioSampleCount after calling > > `newAudioChunkPushed`? In either case, it might be clearer to pass sample > > count to `newAudioChunkPushed()` rather than having it query the module. > > Right, passing the sample count to newAudioChunkPushed is a good idea. > As of the order, I think it makes sense this way, we start calling > newAudioChunkPushed with count = 0.
I forgot to update newAudioChunkPushed, will do this as a follow-up
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug