| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks! A few suggestions for simpification and modernization.
+henrika as I am not very familiar with Windows audio code.
DCHECK_GE(n, 0);base::HeapArray will prevent out-of-bounds indexing, so these DCHECKS are redundant now.
for (int ix = 0; ix != num_buffers_; ++ix) {```suggestion
for (auto& buffer : buffers_) {
```
etc.
WAVEHDR* buffer = GetBuffer(ix);```suggestion
WAVEHDR& wave_hdr = buffer.header;
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return buffer_size_;Should we still have a const version of this method? or is it not needed?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Thanks for fixing!
#include <stdint.h>You've added `#include <cstdint>`, so the existing `#include <stdint.h>` is now redundant and can be removed.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
#include <stdint.h>You've added `#include <cstdint>`, so the existing `#include <stdint.h>` is now redundant and can be removed.
Done
Should we still have a const version of this method? or is it not needed?
I removed `GetBuffer()` now that the callers iterate over `buffers_` directly, so a const overload is no longer needed.
base::HeapArray will prevent out-of-bounds indexing, so these DCHECKS are redundant now.
Done
```suggestion
for (auto& buffer : buffers_) {
```etc.
Done
```suggestion
WAVEHDR& wave_hdr = buffer.header;
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| 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. |