| Auto-Submit | +1 |
| Commit-Queue | +2 |
Hi, could you help me with a Code Review?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
#include "base/containers/span.h"i don't think we need it, since it's already included in the header file
std::vector<float*> channel_ptrs_;I think we can make it `vector<span<float>>` and it'll be nicer and safer
base::span<float* const> output_ptrs) {can we make it `span<span<float>>` and create whose spans (with UNSAFE_TODO) where we call this?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
Hi, Eugene. I've responded and implemented some of your sugestions. Can you help me with another check?
i don't think we need it, since it's already included in the header file
Done
we don't need this line
Done
I think we can make it `vector<span<float>>` and it'll be nicer and safer
Changing channel_ptrs_ to std::vector<base::span<float>> would add overhead and complexity because the WebRTC ProcessStream API requires raw float** style arguments (we would need to convert back from spans on each call). The current approach seems more direct and readable. The necessary safety guarantees for buffer access are provided by media::AudioBus.
can we make it `span<span<float>>` and create whose spans (with UNSAFE_TODO) where we call this?
I think we wold just move where the UNSAFE macro is, not avoiding it. Additionally, ProcessData would still need to extract the raw float* pointers to call the WebRTC ProcessStream API.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
auto dest = UNSAFE_BUFFERS(base::span(I feel like these need to be `UNSAFE_TODO`, because ultimately we want all buffers to carry their size
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |