dom/media/test/crashtests/buffer-source-resampling-start-1.html
author Cosmin Sabou <csabou@mozilla.com>
Sat, 12 Jul 2025 09:18:08 +0300 (7 hours ago)
changeset 796290 5ad1f0c58c82bdfa2f42fed870bbe143465398d0
parent 268271 4e57a9fb9a2521aaf4f05b910ebddc4cfeeb9ce2
permissions -rw-r--r--
Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!DOCTYPE html>
<html class="reftest-wait">
<script>
const rate = 44101; // not divisible by 2
var context = new window.OfflineAudioContext(1, 512, rate);
var buffer = context.createBuffer(1, 128, rate);
buffer.getChannelData(0)[0] = 1.0;
var source = context.createBufferSource();
source.buffer = buffer;
source.playbackRate.value = rate / (Math.pow(2, 30) * 1.0000001);
source.start(512 / rate);
context.startRendering().
  then(function() {
    document.documentElement.removeAttribute("class");
  });
</script>