mediabunny 1.56.1 → 1.56.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/mediabunny.cjs +2 -2
- package/dist/bundles/mediabunny.min.cjs +1 -1
- package/dist/bundles/mediabunny.min.mjs +1 -1
- package/dist/bundles/mediabunny.mjs +2 -2
- package/dist/bundles/mediabunny.node.cjs +2 -2
- package/dist/modules/src/resample.d.ts.map +1 -1
- package/dist/modules/src/resample.js +6 -2
- package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/resample.ts +6 -2
|
@@ -34552,11 +34552,11 @@ ${cue.notes ?? ""}`;
|
|
|
34552
34552
|
};
|
|
34553
34553
|
} else if (sourceNum === 2 && targetNum === 4) {
|
|
34554
34554
|
this.channelMixer = (sourceData, sourceFrameIndex, targetChannelIndex) => {
|
|
34555
|
-
return sourceData[sourceFrameIndex * sourceNum + targetChannelIndex]
|
|
34555
|
+
return targetChannelIndex < 2 ? sourceData[sourceFrameIndex * sourceNum + targetChannelIndex] : 0;
|
|
34556
34556
|
};
|
|
34557
34557
|
} else if (sourceNum === 2 && targetNum === 6) {
|
|
34558
34558
|
this.channelMixer = (sourceData, sourceFrameIndex, targetChannelIndex) => {
|
|
34559
|
-
return sourceData[sourceFrameIndex * sourceNum + targetChannelIndex]
|
|
34559
|
+
return targetChannelIndex < 2 ? sourceData[sourceFrameIndex * sourceNum + targetChannelIndex] : 0;
|
|
34560
34560
|
};
|
|
34561
34561
|
} else if (sourceNum === 4 && targetNum === 1) {
|
|
34562
34562
|
this.channelMixer = (sourceData, sourceFrameIndex) => {
|