From bb6d47bb0d3a77b889174fe2e9df223b540505c0 Mon Sep 17 00:00:00 2001 From: Felix Erckenbrecht Date: Sat, 2 Nov 2019 20:40:32 +0100 Subject: Precalculate baseband samples --- src/fl2k_garage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fl2k_garage.c b/src/fl2k_garage.c index 575c3ad..f1c41a4 100644 --- a/src/fl2k_garage.c +++ b/src/fl2k_garage.c @@ -475,7 +475,7 @@ int main(int argc, char **argv) slopebuf = malloc(BUFFER_SAMPLES * sizeof(double)); ampbuf = malloc(BUFFER_SAMPLES * sizeof(double)); slopebuf = malloc(BUFFER_SAMPLES * sizeof(double)); - sample_buf = malloc(BASEBAND_SAMPLES_PER_CHIP * BASEBAND_CHIPS_TOTAL); + sample_buf = malloc((BASEBAND_SAMPLES_PER_CHIP * BASEBAND_CHIPS_TOTAL) * sizeof(int16_t)); readpos = 0; writepos = 1; -- cgit v1.2.3