MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / readInt16

Method readInt16

modules/data/wavreader/wavreader.js:102–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 return result;
101 }
102 readInt16() {
103 let result = this.wav.getInt16(this.position, true);
104 this.position += 2;
105 if (this.position > this.waveSize)
106 throw new Error("eof");
107 return result;
108 }
109 readUint8() {
110 let result = this.wav.getUint8(this.position, true);
111 this.position += 1;

Callers 1

getSamplesMethod · 0.95

Calls 1

getInt16Method · 0.80

Tested by

no test coverage detected