From 17124cf9adf2b1017180bab854bf8a2d50639e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Tue, 24 Nov 2015 22:31:35 +0100 Subject: [PATCH] output/wav: use the right buffer for SR_DF_ANALOG --- src/output/wav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);