Skip to content

Commit

Permalink
remove monkeypatch
Browse files Browse the repository at this point in the history
  • Loading branch information
cwilso committed May 17, 2014
1 parent 2d57888 commit e84501e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

</head>
<body>
<script src="http://cwilso.github.io/AudioContext-MonkeyPatch/AudioContextMonkeyPatch.js"></script>
<script src="js/pitchdetect.js"></script>

<button onclick="this.innerText = togglePlayback()">use demo audio</button>
Expand Down
3 changes: 3 additions & 0 deletions js/pitchdetect.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

window.AudioContext = window.AudioContext || window.webkitAudioContext;

var audioContext = new AudioContext();
var isPlaying = false;
var sourceNode = null;
Expand Down

0 comments on commit e84501e

Please sign in to comment.