c++ - Converting a 8 bit PCM to 16 bit PCM -


starting this question made understand how deinterleave left , right channel of 16 bit pcm data.

my question is, how 8 bit pcm deinterleaved , "stretched" 16 bit value

16-bit pcm has same data bits , additional bits on least significant bit side specify value , add accuracy , detail. 8-bit pcm typically unsigned value centerpoint of 0x80, , 16-bit (also applicable higher bitnesses) pcm signed integer, conversion formula is:

uint8 sample8 = ...; int16 sample16 = (int16) (sample8 - 0x80) << 8; 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -