Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /webaudio/the-audio-api/the-convolvernode-interface/convolver-rendersizehint.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Test ConvolverNode with renderSizeHint</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/webaudio/resources/rendersizehint-robustness-helper.js"></script>
<script>
// Robustness sweep across all standard robustness configurations
for (const config of ROBUSTNESS_TEST_CONFIGS) {
const {sampleRate, renderSizeHint} = config;
runQuantumRobustnessTest(
config,
context => {
return new ConvolverNode(context, {
buffer: createImpulseResponse(context, 64)
});
},
`ConvolverNode stability at ${sampleRate}Hz ` +
`with renderSizeHint ${renderSizeHint}`
);
}
</script>