abalabahaha / opusscript

JS bindings for libopus 1.4, ported with Emscripten
MIT License
63 stars 19 forks source link

feat: add setBitrate() helper #21

Closed portasynthinca3 closed 1 year ago

portasynthinca3 commented 3 years ago

This is just a simple function, essentially an alias to encoderCTL: this.encoderCTL(4002, val). It would be nice to have it in the library itself though, rater than the projects that depend on it as they won't have to carry this magic number around.

abalabahaha commented 1 year ago

Sorry for the slight delay, thanks.

Changing to setBitrate (opus uses bitrate as one word, so I'd rather stick with that)