Skip to content

Comments

Add bufferSize option#33

Open
matthova wants to merge 1 commit intoashishbajaj99:masterfrom
matthova:feature/add-buffer-flag
Open

Add bufferSize option#33
matthova wants to merge 1 commit intoashishbajaj99:masterfrom
matthova:feature/add-buffer-flag

Conversation

@matthova
Copy link

No description provided.

var bitwidth = options.bitwidth || '16';
var encoding = options.encoding || 'signed-integer';
var rate = options.rate || '16000';
var bufferSize = options.bufferSize || '16384';
Copy link
Author

@matthova matthova Mar 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the buffer arg for arecord defaults to the min(max possible buffer size, 500ms), we can't determine an unopinionated default value.

One alternative is to remove defaults and only add the buffer argument if the bufferSize arg is passed.

Thoughts?

@foxxyz
Copy link

foxxyz commented Mar 31, 2021

@ashishbajaj99 are you still maintaining this package? Is there anything I can help with to get this PR accepted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants