Skip to content

Commit

Permalink
length
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp committed Oct 3, 2024
1 parent 79f888a commit e600623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/livekit-rtc/src/audio_resampler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export class AudioResampler {
new Int16Array(outputData.subarray()),
this.#outputRate,
this.#channels,
outputData.length,
Math.trunc(outputData.length / this.#channels / 2),
),
];
}
Expand Down Expand Up @@ -159,7 +159,7 @@ export class AudioResampler {
new Int16Array(outputData.subarray()),
this.#outputRate,
this.#channels,
outputData.length,
Math.trunc(outputData.length / this.#channels / 2),
),
];
}
Expand Down

0 comments on commit e600623

Please sign in to comment.