(view: DataView, offset: number, str: string)
| 128 | } |
| 129 | |
| 130 | function writeString(view: DataView, offset: number, str: string): void { |
| 131 | for (let i = 0; i < str.length; i++) { |
| 132 | view.setUint8(offset + i, str.charCodeAt(i)); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * PCM Buffer - Accumulates audio chunks for batched processing |