We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae433d6 commit c5ea3fcCopy full SHA for c5ea3fc
1 file changed
samples/lib/audio_renderer.js
@@ -176,7 +176,7 @@ export class AudioRenderer {
176
debugLog(`bufferAudioData() ts:${data.timestamp} durationSec:${data.duration / 1000000}`);
177
// Write to temporary planar arrays, and interleave into the ring buffer.
178
for (var i = 0; i < this.channelCount; i++) {
179
- data.copyTo(this.interleavingBuffers[i], { planeIndex: i });
+ data.copyTo(this.interleavingBuffers[i], { planeIndex: i, format: "f32-planar" });
180
}
181
// Write the data to the ring buffer. Because it wraps around, there is
182
// potentially two copyTo to do.
0 commit comments