title: Converting data from 8 bits to 12 bits
body: <p>I am getting signal that is stored as a buffer of char data (8 bits).
  I am also getting the same signal plus 24 dB and my boss told me that it should be possible to reconstruct from those two buffers, one (which will be used as output) that will be stored as 12 bits.
  I would like to know the mathematical operation that can do that and why choosing +24dB.
  Thanks (I am dumb >&lt;).</p>