From: John Melton - G0ORX/N6LYT Date: Fri, 15 Jul 2016 11:02:53 +0000 (+0000) Subject: fixed FREEDV mic sample rate in new protocol X-Git-Url: https://git.rkrishnan.org/pf/vdrive/readonly?a=commitdiff_plain;h=8b58b605ce3b70ce36d0bb2806890b7b8205319f;p=pihpsdr.git fixed FREEDV mic sample rate in new protocol --- diff --git a/new_protocol.c b/new_protocol.c index 66c21ea..3f695a5 100644 --- a/new_protocol.c +++ b/new_protocol.c @@ -564,45 +564,8 @@ double calibrate(int v) { } void new_protocol_calc_buffers() { - switch(sample_rate) { - case 48000: - outputsamples=BUFFER_SIZE; -#ifdef FREEDV - freedv_divisor=6; -#endif - break; - case 96000: - outputsamples=BUFFER_SIZE/2; -#ifdef FREEDV - freedv_divisor=12; -#endif - break; - case 192000: - outputsamples=BUFFER_SIZE/4; -#ifdef FREEDV - freedv_divisor=24; -#endif - break; - case 384000: - outputsamples=BUFFER_SIZE/8; -#ifdef FREEDV - freedv_divisor=48; -#endif - break; - case 768000: - outputsamples=BUFFER_SIZE/16; -#ifdef FREEDV - freedv_divisor=96; -#endif - break; - case 1536000: - outputsamples=BUFFER_SIZE/32; -#ifdef FREEDV - freedv_divisor=128; -#endif - break; - } - + // always 48000 input + freedv_divisor=6; } void* new_protocol_thread(void* arg) {