Skip to content

expose quality setting and move to config object#61

Open
bobbles911 wants to merge 1 commit into
zhuker:masterfrom
bobbles911:master
Open

expose quality setting and move to config object#61
bobbles911 wants to merge 1 commit into
zhuker:masterfrom
bobbles911:master

Conversation

@bobbles911
Copy link
Copy Markdown

No description provided.

Comment thread src/js/index.js
kbps = 128;
}
function Mp3Encoder(config) {
config = Object.assign({
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

overall the idea is good, but i think it makes sense to keep backwards compatible constructor for current users of the api
if (typeof arguments[0] === 'object') { ... your code ... } else { ... backwards compatible constructor ... }

@bobbles911
Copy link
Copy Markdown
Author

that makes sense, I will do this when I can

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