Skip to content

Instantly share code, notes, and snippets.

@katcipis
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katcipis/c4610223c369508dbe1b to your computer and use it in GitHub Desktop.
Save katcipis/c4610223c369508dbe1b to your computer and use it in GitHub Desktop.
Firefox bug 966247
<!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