Skip to content

Commit

Permalink
fix: default value
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Jan 20, 2024
1 parent 11b2423 commit 259170e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crunker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CrunkerConstructorOptions> = {}) {
constructor({ sampleRate, concurrentNetworkRequests = 200 }: Partial<CrunkerConstructorOptions> = {}) {
this._context = this._createContext(sampleRate);

sampleRate ||= this._context.sampleRate;
Expand Down

0 comments on commit 259170e

Please sign in to comment.