diff --git a/player/src/audio/ring.ts b/player/src/audio/ring.ts index cd796ee..3eaef49 100644 --- a/player/src/audio/ring.ts +++ b/player/src/audio/ring.ts @@ -59,11 +59,15 @@ export class Ring { frameCount: first.length, }) + //For some reason this breaks audio... and this is my temporary fix + //console.log("frame offset", first.length , "frame count", second.length) to test + if (first.length < second.length) { frame.copyTo(second, { planeIndex: i, frameOffset: first.length, frameCount: second.length, }) + } } } @@ -140,4 +144,4 @@ export class RingInit { this.capacity = capacity } -} \ No newline at end of file +}