Summary: | Add a better mock for audio units used by CoreAudioSharedUnit | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||||||||
Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Normal | CC: | eric.carlson, ews-watchlist, glenn, hta, jer.noble, philipj, sergio, tommyw, webkit-bug-importer, youennf, youssefdevelops, y_soliman | ||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||
Hardware: | Unspecified | ||||||||||||||
OS: | Unspecified | ||||||||||||||
Attachments: |
|
Description
youenn fablet
2022-05-09 06:22:12 PDT
Created attachment 459041 [details]
Patch
Created attachment 459111 [details]
Patch
Created attachment 459112 [details]
Patch
Created attachment 459113 [details]
Patch
Comment on attachment 459113 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459113&action=review > Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm:266 > + auto sampleTime = PAL::toMediaTime(startTime).toFloat(); Can you just use `sampleTime = PAL::CMTimeGetSeconds(startTime)`? (In reply to Eric Carlson from comment #5) > Comment on attachment 459113 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=459113&action=review > > > Source/WebCore/platform/mediastream/mac/MockAudioSharedUnit.mm:266 > > + auto sampleTime = PAL::toMediaTime(startTime).toFloat(); > > Can you just use `sampleTime = PAL::CMTimeGetSeconds(startTime)`? Yes, that seems better. Comment on attachment 459113 [details]
Patch
win failure is unrelated. Marking as r?
Created attachment 459221 [details]
Patch for landing
Committed r294102 (250487@main): <https://commits.webkit.org/250487@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 459221 [details]. |