X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fwav.c;h=f991cbfdc68526d9fea8754ad200565b712076a9;hb=c01bf34ca264b268fee2e71ab918c71d28dc3018;hp=87ac44ac463d840726d2ea12a193927f89ee8175;hpb=c7224164a073461d9be8dc54120dc13673e65f61;p=libsigrok.git diff --git a/src/output/wav.c b/src/output/wav.c index 87ac44ac..f991cbfd 100644 --- a/src/output/wav.c +++ b/src/output/wav.c @@ -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);