samirkumardas / opus-to-pcm

Decode raw opus packet to PCM without using any external library in your browser.
Other
73 stars 15 forks source link

Adding two more optional options #4

Closed paulosoaresvieira closed 5 years ago

paulosoaresvieira commented 5 years ago

nativeSupport sample rate

samirkumardas commented 5 years ago

Thank you Paul.

Though I hadn't added output sample rate deliberately as it does not have any additional impact in browser environment as we are only decoding it and playing right after. Moreover it is not available in Native decoding.

Regards, Samir

samirkumardas commented 5 years ago

Sorry Paul, I just realised that there is a naming conflict within the options fallback and nativeSupport. fallback is present in case nativeSupport is not available. So if we keep another option nativeSupport, it will just oppose the necessity of having fallback

By the way, I have another repository that runs on libopus.js only with encoding support. https://github.com/samirkumardas/another-libopus.js