piixishstream 1.0.2 → 1.0.3
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/media/newApi.js +1 -1
- package/package.json +1 -1
- package/src/media/newApi.ts +1 -1
package/dist/media/newApi.js
CHANGED
|
@@ -186,7 +186,7 @@ export function prepareStream(input, options = {}, cancelSignal) {
|
|
|
186
186
|
// realtime control mechanism
|
|
187
187
|
let currentVolume = 1;
|
|
188
188
|
let zmqClientPromise;
|
|
189
|
-
if (includeAudio && !isBun() && !isDeno()) {
|
|
189
|
+
if (includeAudio && !isBun() && !isDeno() && process.env.ENABLE_ZMQ === "true") {
|
|
190
190
|
function randomInclusive(start, end) {
|
|
191
191
|
return Math.floor(Math.random() * (end - start + 1)) + start;
|
|
192
192
|
}
|
package/package.json
CHANGED
package/src/media/newApi.ts
CHANGED
|
@@ -344,7 +344,7 @@ export function prepareStream(
|
|
|
344
344
|
// realtime control mechanism
|
|
345
345
|
let currentVolume = 1;
|
|
346
346
|
let zmqClientPromise: Promise<Request> | undefined;
|
|
347
|
-
if (includeAudio && !isBun() && !isDeno()) {
|
|
347
|
+
if (includeAudio && !isBun() && !isDeno() && process.env.ENABLE_ZMQ === "true") {
|
|
348
348
|
function randomInclusive(start: number, end: number) {
|
|
349
349
|
return Math.floor(Math.random() * (end - start + 1)) + start;
|
|
350
350
|
}
|