 = buf;
    bs.start();

    bs.connect(convolver).connect(oac.destination);
    return oac.startRendering();
  }
};

function allSamplesAtOne(audiobuffer, location) {
  var buf = audiobuffer.getChannelData(0);
  for (var i = 0; i < buf.length; i++) {
    // The convolver can introduce a slight numerical error.
    if (Math.abs(buf[i] - 1.0) > 0.0001) {
      assert_true(false, `Invalid value at index ${i}, expected close to 1.0, found ${buf[i]} when ${location}`)
      return Promise.reject();
    }
  }
  