Bug 225452

Summary: Use IPC::Semaphore instead of sending an IPC message for every captured audio sample
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

youenn fablet
Reported 2021-05-06 05:04:11 PDT
Use IPC::Semaphore instead of sending an IPC message for every captured audio sample
Attachments
Patch (14.71 KB, patch)
2021-05-06 05:07 PDT, youenn fablet
no flags
Patch (16.84 KB, patch)
2021-05-06 06:27 PDT, youenn fablet
no flags
Patch (16.74 KB, patch)
2021-05-06 06:28 PDT, youenn fablet
no flags
Patch (15.15 KB, patch)
2021-05-06 08:21 PDT, youenn fablet
no flags
Patch (17.71 KB, patch)
2021-05-07 08:45 PDT, youenn fablet
no flags
Patch (17.69 KB, patch)
2021-05-07 09:45 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2021-05-06 05:07:38 PDT
youenn fablet
Comment 2 2021-05-06 05:47:58 PDT
I reused the web audio model but this might not be an optimal approach given we use chunks of 128 samples, while the AudioUnit may use larger chunks. Another approach would be to keep using fixed sample size, say 5 or 10 ms, something like std::max(128, sampleRate / 100). Thoughts?
youenn fablet
Comment 3 2021-05-06 06:27:41 PDT
youenn fablet
Comment 4 2021-05-06 06:28:46 PDT
youenn fablet
Comment 5 2021-05-06 08:21:34 PDT
youenn fablet
Comment 6 2021-05-07 08:45:07 PDT
youenn fablet
Comment 7 2021-05-07 09:45:32 PDT
EWS
Comment 8 2021-05-10 00:10:38 PDT
Committed r277256 (237525@main): <https://commits.webkit.org/237525@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 428004 [details].
Radar WebKit Bug Importer
Comment 9 2021-05-10 00:11:16 PDT
Note You need to log in before you can comment on or make changes to this bug.