Skip to content

Comments

adding buffer size as parameter.#21

Open
lorenzoromagnoli wants to merge 5 commits intoashishbajaj99:masterfrom
lorenzoromagnoli:master
Open

adding buffer size as parameter.#21
lorenzoromagnoli wants to merge 5 commits intoashishbajaj99:masterfrom
lorenzoromagnoli:master

Conversation

@lorenzoromagnoli
Copy link

@lorenzoromagnoli lorenzoromagnoli commented Sep 25, 2017

I needed to control the size of the recording buffer to be able to quickly process a fft on the signal.
Thank you very much for this package btw 👍

Copy link
Owner

@ashishbajaj99 ashishbajaj99 left a comment

Choose a reason for hiding this comment

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

thank you for the PR. Kindly fix the indentation and then we are good to go.

var exitOnSilence = options.exitOnSilence || 0;
var fileType = options.fileType || 'raw';
var debug = options.debug || false;
var buffer = options.buffer || 500;
Copy link
Owner

Choose a reason for hiding this comment

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

can you please fix the indentation?

'-t', fileType, '--buffer', buffer , '-'], audioProcessOptions)
}
else {
var buffer_time=(buffer/rate)*1000000;
Copy link
Owner

Choose a reason for hiding this comment

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

please fix the indentation

format, '-D', device], audioProcessOptions);
format, '-D', device, '--buffer-time', buffer_time], audioProcessOptions);
}
if(debug)console.log(audioProcess);
Copy link
Owner

Choose a reason for hiding this comment

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

please fix the indentation

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