diff --git a/src/common/RiffPcmEncoder.ts b/src/common/RiffPcmEncoder.ts index 45c9748d..18d90cab 100644 --- a/src/common/RiffPcmEncoder.ts +++ b/src/common/RiffPcmEncoder.ts @@ -47,6 +47,10 @@ export class RiffPcmEncoder { srcRate: number, dstRate: number): Float32Array => { + if (!srcFrame) { + return null; + } + if (dstRate === srcRate || dstRate > srcRate) { return srcFrame; }