@apocaliss92/nodelink-js 0.4.36 → 0.5.0
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/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -41355,14 +41355,15 @@ function encodeImaAdpcm(pcm, blockSizeBytes) {
|
|
|
41355
41355
|
}
|
|
41356
41356
|
|
|
41357
41357
|
// src/reolink/baichuan/utils/audioMulaw.ts
|
|
41358
|
-
var import_alawmulaw = require("alawmulaw");
|
|
41358
|
+
var import_alawmulaw = __toESM(require("alawmulaw"), 1);
|
|
41359
|
+
var { mulaw, alaw } = import_alawmulaw.default;
|
|
41359
41360
|
function mulawToPcm16(bytes) {
|
|
41360
41361
|
if (bytes.length === 0) return new Int16Array(0);
|
|
41361
|
-
return
|
|
41362
|
+
return mulaw.decode(bytes);
|
|
41362
41363
|
}
|
|
41363
41364
|
function alawToPcm16(bytes) {
|
|
41364
41365
|
if (bytes.length === 0) return new Int16Array(0);
|
|
41365
|
-
return
|
|
41366
|
+
return alaw.decode(bytes);
|
|
41366
41367
|
}
|
|
41367
41368
|
|
|
41368
41369
|
// src/reolink/baichuan/utils/audioResample.ts
|