From cb69f6d73124bec5c52b9e951637bd59ce4318a0 Mon Sep 17 00:00:00 2001 From: c vw Date: Fri, 22 Nov 2019 19:25:21 +0100 Subject: [PATCH] Doubled the pixels of the Feedback RX because of John's changes --- receiver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/receiver.c b/receiver.c index 152a2e5..10a9cac 100644 --- a/receiver.c +++ b/receiver.c @@ -816,9 +816,9 @@ fprintf(stderr,"create_pure_signal_receiver: id=%d buffer_size=%d\n",id,buffer_s // display only the central part. // if (protocol == ORIGINAL_PROTOCOL) { - rx->pixels=(sample_rate/48000) * width; + rx->pixels=2*(sample_rate/48000) * width; } else { - rx->pixels = 4*width; + rx->pixels = 8*width; } } // allocate buffers @@ -1182,11 +1182,11 @@ g_print("receiver_change_sample_rate: id=%d rate=%d scale=%d buffer_size=%d outp if (rx->id == PS_RX_FEEDBACK) { float *fp, *ofp; if (protocol == ORIGINAL_PROTOCOL) { - rx->pixels = scale * rx->width; + rx->pixels = 2* scale * rx->width; } else { // We should never arrive here, since the sample rate of the // PS feedback receiver is fixed. - rx->pixels = 4 * rx->width; + rx->pixels = 8 * rx->width; } // make sure pixel_samples is always a valid pointer // ... probably pure DL1YCF's paranoia -- 2.45.2