kopia lustrzana https://github.com/xdsopl/robot36
oops: we also need M samples of history for ddc
rodzic
cb5abfecd0
commit
4021631af6
3
debug.c
3
debug.c
|
@ -116,7 +116,8 @@ 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
|
||||
struct buffer *buffer = alloc_buffer(0.1 * rate + 2 * fmaxf(cnt_delay, dat_delay));
|
||||
int buff_len = 0.1 * rate + factor_M + 2 * fmaxf(cnt_delay, dat_delay);
|
||||
struct buffer *buffer = alloc_buffer(buff_len);
|
||||
|
||||
const float sync_porch_len = 0.003;
|
||||
const float porch_len = 0.0015; (void)porch_len;
|
||||
|
|
3
decode.c
3
decode.c
|
@ -340,7 +340,8 @@ 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
|
||||
buffer = alloc_buffer(0.1 * rate + 2 * fmaxf(cnt_delay, dat_delay));
|
||||
int buff_len = 0.1 * rate + factor_M + 2 * fmaxf(cnt_delay, dat_delay);
|
||||
buffer = alloc_buffer(buff_len);
|
||||
|
||||
// start immediately below
|
||||
out = factor_L;
|
||||
|
|
Ładowanie…
Reference in New Issue