output/wav: use the right buffer for SR_DF_ANALOG

This commit is contained in:
Stefan Brüns 2015-11-24 22:31:35 +01:00 committed by Uwe Hermann
parent 8b5aefc681
commit 17124cf9ad
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ static int receive(const struct sr_output *o, const struct sr_datafeed_packet *p
for (j = 0; j < num_channels; j++) {
idx = chan_idx[j];
buf = outc->chanbuf[idx] + outc->chanbuf_used[idx]++ * 4;
f = analog_old->data[i * num_channels + j];
f = data[i * num_channels + j];
if (outc->scale != 0.0)
f /= outc->scale;
float_to_le(buf, f);