From 259170e7b8b75bc304d2a4ad99f623c730d835ce Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Sat, 20 Jan 2024 12:03:47 +0000 Subject: [PATCH] fix: default value --- src/crunker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crunker.ts b/src/crunker.ts index 8670591..8c56307 100644 --- a/src/crunker.ts +++ b/src/crunker.ts @@ -40,7 +40,7 @@ export default class Crunker { * If `sampleRate` is not defined, it will auto-select an appropriate sample rate * for the device being used. */ - constructor({ sampleRate, concurrentNetworkRequests }: Partial = {}) { + constructor({ sampleRate, concurrentNetworkRequests = 200 }: Partial = {}) { this._context = this._createContext(sampleRate); sampleRate ||= this._context.sampleRate;