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

Method seekBy

modules/data/wavreader/wavreader.js:123–129  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

121 return result;
122 }
123 seekBy(count) {
124 const position = this.position + count;
125 if ((position >= this.waveSize) || (position < 0))
126 throw new RangeError;
127
128 this.position = position
129 }
130 seekTo(position) {
131 if (position >= this.waveSize)
132 throw new RangeError;

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected