]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Doubled the pixels of the Feedback RX because of John's changes
authorc vw <dl1ycf@darc.de>
Fri, 22 Nov 2019 18:25:21 +0000 (19:25 +0100)
committerc vw <dl1ycf@darc.de>
Fri, 22 Nov 2019 18:25:21 +0000 (19:25 +0100)
receiver.c

index 152a2e500ec7efca1101703a7e09fc3c5eb42a9e..10a9cacebb83e366dc494c0470d5d1f0d7d3ae5a 100644 (file)
@@ -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