MediaStreamRecorder icon indicating copy to clipboard operation
MediaStreamRecorder copied to clipboard

Float32 to Int16 in StereoAudioRecorderHelper.js

Open crky14 opened this issue 5 years ago • 0 comments

Current implementation is multiplying Float32 number in range (-1,1) by 0xFFFF which is eqvivalent to 65535. I found that with this conversion data is incorrect.

By som googling I found that using this:

num < 0 ? num * 0x8000 : num * 0x7FFF;

Im getting results equivalent to numpy implementation.

Is this a issue or I got something wrong ?

crky14 avatar Oct 29 '19 10:10 crky14