Last active
August 29, 2015 14:12
-
-
Save katcipis/c4610223c369508dbe1b to your computer and use it in GitHub Desktop.
Firefox bug 966247
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width"> | |
<title> Reproducing bug 966247 </title> | |
<link rel="stylesheet" href=""> | |
<!--[if lt IE 9]> | |
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
</head> | |
<body> | |
<h1>Using gain node with playback rate</h1> | |
<audio controls> | |
<source src="https://raw.githubusercontent.com/mdn/media-source-buffer/gh-pages/viper.ogg" type="audio/ogg"> | |
</audio> | |
<pre></pre> | |
</body> | |
<script> | |
var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
var myAudio = document.querySelector('audio'); | |
var source = audioCtx.createMediaElementSource(myAudio); | |
var gainNode = audioCtx.createGain(); | |
source.connect(gainNode); | |
gainNode.connect(audioCtx.destination); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment