noise-buffer
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,3 +7,3 @@ // courtesy of http://noisehack.com/generate-noise-web-audio-api/ | ||
var samples = length * sampleRate; | ||
var context = new OfflineAudioContext(1, samples, sampleRate); | ||
var context = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, samples, sampleRate); | ||
var noiseBuffer = context.createBuffer(1, samples, sampleRate); | ||
@@ -10,0 +10,0 @@ var output = noiseBuffer.getChannelData(0); |
{ | ||
"name": "noise-buffer", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Generate `AudioBuffer`s of white noise.", | ||
@@ -5,0 +5,0 @@ "repository": "github:itsjoesullivan/noise-buffer", |
2452