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 5b5b36e commit 1e28da8Copy full SHA for 1e28da8
2 files changed
lib/core.js
@@ -395,6 +395,10 @@ WaveformData.prototype = {
395
return waveform;
396
},
397
398
+ /**
399
+ * Returns the waveform data in binary format as an ArrayBuffer.
400
+ */
401
+
402
toArrayBuffer: function() {
403
if (this._adapter instanceof WaveformDataArrayBufferAdapter) {
404
return this._adapter._data.buffer;
waveform-data.d.ts
@@ -201,7 +201,7 @@ declare module 'waveform-data' {
201
toJSON: () => JsonWaveformData;
202
203
/**
204
- * Returns the waveform data as an object
+ * Returns the waveform data in binary format as an ArrayBuffer
205
*/
206
207
toArrayBuffer: () => ArrayBuffer;
0 commit comments