kopia lustrzana https://github.com/xdsopl/robot36
added taplen/L also to history length
rodzic
72f990f3d4
commit
9ae9159578
4
debug.c
4
debug.c
|
@ -125,7 +125,9 @@ int main(int argc, char **argv)
|
|||
short *pcm_buff = (short *)malloc(sizeof(short) * channels * factor_M);
|
||||
|
||||
// 0.1 second history + enough room for delay and taps
|
||||
int buff_len = 0.1 * rate + factor_M + 2 * fmaxf(cnt_delay, dat_delay);
|
||||
int buff_len = 0.1 * rate + factor_M
|
||||
+ fmaxf(cnt_delay, dat_delay)
|
||||
+ fmaxf(cnt_taps, dat_taps) / factor_L;
|
||||
struct buffer *buffer = alloc_buffer(buff_len);
|
||||
|
||||
const float sync_porch_len = 0.003;
|
||||
|
|
4
decode.c
4
decode.c
|
@ -349,7 +349,9 @@ int demodulate(struct pcm *pcm, float *cnt_freq, float *dat_freq, float *drate)
|
|||
pcm_buff = (short *)malloc(sizeof(short) * channels * factor_M);
|
||||
|
||||
// 0.1 second history + enough room for delay and taps
|
||||
int buff_len = 0.1 * rate + factor_M + 2 * fmaxf(cnt_delay, dat_delay);
|
||||
int buff_len = 0.1 * rate + factor_M
|
||||
+ fmaxf(cnt_delay, dat_delay)
|
||||
+ fmaxf(cnt_taps, dat_taps) / factor_L;
|
||||
buffer = alloc_buffer(buff_len);
|
||||
|
||||
// start immediately below
|
||||
|
|
Ładowanie…
Reference in New Issue