forked from mirrors/gecko-dev
		
	MozReview-Commit-ID: 5fVG7akPnGM --HG-- extra : rebase_source : e462e84bf8f2ffd893d1fd6b5ea14bbc093168dd
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			558 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			558 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<head>
 | 
						|
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
 | 
						|
  <meta content="utf-8" http-equiv="encoding">
 | 
						|
</head>
 | 
						|
<script type="text/javascript">
 | 
						|
  var ac = new AudioContext();
 | 
						|
  var dest = ac.destination;
 | 
						|
  var osc = ac.createOscillator();
 | 
						|
  osc.connect(dest);
 | 
						|
  osc.start();
 | 
						|
 | 
						|
  function start_webaudio() {
 | 
						|
    ac.resume();
 | 
						|
  }
 | 
						|
 | 
						|
  function stop_webaudio() {
 | 
						|
    ac.suspend();
 | 
						|
  }
 | 
						|
</script>
 | 
						|
<body>
 | 
						|
<button id="start" onclick="start_webaudio()">Start</button>
 | 
						|
<button id="stop" onclick="stop_webaudio()">Stop</button>
 | 
						|
</body>
 |