We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac13cca commit ce44dd4Copy full SHA for ce44dd4
src/helpers.js
@@ -259,8 +259,8 @@ define(function (require) {
259
view.setUint16(20, 1, true);
260
// stereo (2 channels)
261
view.setUint16(22, 2, true);
262
- view.setUint32(24, 44100, true);
263
- view.setUint32(28, 44100 * 4, true);
+ view.setUint32(24, p5sound.audiocontext.sampleRate, true);
+ view.setUint32(28, p5sound.audiocontext.sampleRate * 4, true);
264
view.setUint16(32, 4, true);
265
view.setUint16(34, 16, true);
266
// data sub-chunk
0 commit comments