Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/dom/media/webaudio/test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  test_oscillatorNode2.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/media/webaudio/test/test_oscillatorNode2.html


<!DOCTYPE HTML>
<html>
<head>
  <title>Test OscillatorNode lifetime and sine phase</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<pre id="test">
<script src="webaudio.js" type="text/javascript"></script>
<script class="testbody" type="text/javascript">

const signalLength = 2048;

function createOscillator(context) {
  var osc = context.createOscillator();
  osc.start(0);
  osc.stop(signalLength/context.sampleRate);
  return osc;
}

function connectUnreferencedOscillator(context, destination) {
  var osc = createOscillator(context);
  osc.connect(destination);
}

var gTest = {
  length: signalLength,
  numberOfChannels: 1,
  createGraph(context) {
    var blend = context.createGain();

    connectUnreferencedOscillator(context, blend);
    // Test that the unreferenced oscillator remains alive until it has finished.
    SpecialPowers.forceGC();
    SpecialPowers.forceCC();

    // Create another sine wave oscillator in negative time, which should
    // cancel when mixed with the unreferenced oscillator.
    var oscillator = createOscillator(context);
    oscillator.frequency.value = -440;
    oscillator.connect(blend);

    return blend;
  },
};

runTest();

</script>
</pre>
</body>
</html>

Messung V0.5
C=93 H=100 G=96

¤ Dauer der Verarbeitung: 0.21 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.