()
| 78 | } |
| 79 | |
| 80 | readFourCC() { |
| 81 | let result = String.fromCharCode(this.wav.getUint8(this.position), this.wav.getUint8(this.position + 1), |
| 82 | this.wav.getUint8(this.position + 2), this.wav.getUint8(this.position + 3)); |
| 83 | this.position += 4; |
| 84 | if (this.position > this.waveSize) |
| 85 | throw new Error("eof"); |
| 86 | return result; |
| 87 | } |
| 88 | readUint32() { |
| 89 | let result = this.wav.getUint32(this.position, true); |
| 90 | this.position += 4; |