| Code-Review | +1 |
const source = new AudioBufferSourceNode(context);
source.loop = true;
source.loopStart = 1024 / context.sampleRate;
source.loopEnd = 2048 / context.sampleRate;
source.buffer = buffer;Nit: we can pass the properties into the constructor:
```suggestion
const source = new AudioBufferSourceNode(context, {
buffer,
loop: true,
loopEnd: 2048 / context.sampleRate,
loopStart: 1024 / context.sampleRate,
});
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
const source = new AudioBufferSourceNode(context);
source.loop = true;
source.loopStart = 1024 / context.sampleRate;
source.loopEnd = 2048 / context.sampleRate;
source.buffer = buffer;Nit: we can pass the properties into the constructor:
```suggestion
const source = new AudioBufferSourceNode(context, {
buffer,
loop: true,
loopEnd: 2048 / context.sampleRate,
loopStart: 1024 / context.sampleRate,
});
```
Fix applied.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
<script src="/webaudio/resources/audit-util.js"></script>We may not need audit-util.js now (sorry I missed this in my initial review), could you please check?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
<script src="/webaudio/resources/audit-util.js"></script>We may not need audit-util.js now (sorry I missed this in my initial review), could you please check?
Done
Please fix the indentation here.
| 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 |
const buffer = context.createBuffer(1, 2048, context.sampleRate);Can we use `new AudioBuffer()` instead?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
const buffer = context.createBuffer(1, 2048, context.sampleRate);Can we use `new AudioBuffer()` instead?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
numberOfChannels: 1, Please fix this WARNING reported by Trailing Whitespace: Please remove the trailing whitespace.
Please remove the trailing whitespace.
length: 2048, Please fix this WARNING reported by Trailing Whitespace: Please remove the trailing whitespace.
Please remove the trailing whitespace.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Please fix this WARNING reported by Trailing Whitespace: Please remove the trailing whitespace.
Please remove the trailing whitespace.
thank you for noticing
Please fix this WARNING reported by Trailing Whitespace: Please remove the trailing whitespace.
Please remove the trailing whitespace.
| 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. |