Small adjustments

This commit is contained in:
Vanilagy
2025-06-06 15:12:10 +02:00
parent c600b60ee0
commit 470cef60f2
3 changed files with 28 additions and 26 deletions
+2
View File
@@ -249,6 +249,8 @@ const runAudioIterator = async () => {
return;
}
// To play back audio, we loop over all audio chunks (typically very short) of the file and play them at the correct
// timestamp. The result is a continuous, uninteruppted audio signal.
for await (const { buffer, timestamp } of audioBufferIterator!) {
const node = audioContext!.createBufferSource();
node.buffer = buffer;