src/utilities.js
function decompressSamples (o, receivedDeltas) {
  // add the delta to the previous value
  for (let i = 1; i < 3; i++) {
    for (let j = 0; j < 4; j++) {
      o.decompressedSamples[i][j] = o.decompressedSamples[i - 1][j] - receivedDeltas[i - 1][j];
    }
  }
}
function decompressSamples (o, receivedDeltas) {
  // add the delta to the previous value
  for (let i = 1; i < 3; i++) {
    for (let j = 0; j < 4; j++) {
      o.decompressedSamples[i][j] = o.decompressedSamples[i - 1][j] - receivedDeltas[i - 1][j];
    }
  }
}
function decompressSamples ( o , receivedDeltas ) { // add the delta to the previous value for ( let i = 1 ; i < 3 ; i ++ ) { for ( let j = 0 ; j < 4 ; j ++ ) { o . decompressedSamples [ i ] [ j ] = o . decompressedSamples [ i - 1 ] [ j ] - receivedDeltas [ i - 1 ] [ j ] ; } } }
Utilize `receivedDeltas` to get actual count values.
@param receivedDeltas {Array} - An array of deltas
of shape 2x4 (2 samples per packet and 4 channels per sample.)
@private
Utilize receivedDeltas to get actual count values .