Skip to content

Commit 1e28da8

Browse files
committed
Added comments
1 parent 5b5b36e commit 1e28da8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

lib/core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ WaveformData.prototype = {
395395
return waveform;
396396
},
397397

398+
/**
399+
* Returns the waveform data in binary format as an ArrayBuffer.
400+
*/
401+
398402
toArrayBuffer: function() {
399403
if (this._adapter instanceof WaveformDataArrayBufferAdapter) {
400404
return this._adapter._data.buffer;

waveform-data.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ declare module 'waveform-data' {
201201
toJSON: () => JsonWaveformData;
202202

203203
/**
204-
* Returns the waveform data as an object
204+
* Returns the waveform data in binary format as an ArrayBuffer
205205
*/
206206

207207
toArrayBuffer: () => ArrayBuffer;

0 commit comments

Comments
 (0)