Commit ddffe3de authored by Jakub Stachowski's avatar Jakub Stachowski Committed by Kostya Shishkov

WMAL: Shift output samples by the specified number of padding zeroes.

Signed-off-by: 's avatarKostya Shishkov <kostya.shishkov@gmail.com>
parent 363c3a44
......@@ -979,10 +979,10 @@ static int decode_subframe(WmallDecodeCtx *s)
for (j = 0; j < subframe_len; j++) {
if (s->bits_per_sample == 16) {
*s->samples_16[c] = (int16_t) s->channel_residues[c][j];
*s->samples_16[c] = (int16_t) s->channel_residues[c][j] << padding_zeroes;
s->samples_16[c] += s->num_channels;
} else {
*s->samples_32[c] = s->channel_residues[c][j];
*s->samples_32[c] = s->channel_residues[c][j] << padding_zeroes;
s->samples_32[c] += s->num_channels;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment