From: John Melton - G0ORX/N6LYT Date: Sun, 24 Jul 2016 15:06:44 +0000 (+0000) Subject: fixed panadapter for sample rate change X-Git-Url: https://git.rkrishnan.org/vdrive/%22file:/FOOURL?a=commitdiff_plain;h=a86b7464734afea144613a16a9d6aca519bc78ea;p=pihpsdr.git fixed panadapter for sample rate change --- diff --git a/panadapter.c b/panadapter.c index 4898006..b4ca110 100644 --- a/panadapter.c +++ b/panadapter.c @@ -188,6 +188,7 @@ void panadapter_update(float *data,int tx) { gfloat saved_hz_per_pixel; cairo_text_extents_t extents; + hz_per_pixel=(double)getSampleRate()/(double)display_width; samples=data; //if(result==1) { if(panadapter_surface) { @@ -255,13 +256,7 @@ void panadapter_update(float *data,int tx) { long divisor=20000; long half=(long)getSampleRate()/2L; long frequency=getFrequency(); -/* - if(mode==modeCWU) { - frequency=frequency+cw_keyer_sidetone_frequency; - } else if(mode==modeCWL) { - frequency=frequency-cw_keyer_sidetone_frequency; - } -*/ +fprintf(stderr,"panadapter_update: sample_rate=%d\n",sample_rate); switch(sample_rate) { case 48000: divisor=5000L; diff --git a/pihpsdr b/pihpsdr index be2b601..27974e7 100755 Binary files a/pihpsdr and b/pihpsdr differ diff --git a/release/pihpsdr.tar b/release/pihpsdr.tar index 20231a8..37c1155 100644 Binary files a/release/pihpsdr.tar and b/release/pihpsdr.tar differ diff --git a/release/pihpsdr/pihpsdr b/release/pihpsdr/pihpsdr index be2b601..27974e7 100755 Binary files a/release/pihpsdr/pihpsdr and b/release/pihpsdr/pihpsdr differ