From 292784d76ac5cda1ac57e874c8effe8bcf625db1 Mon Sep 17 00:00:00 2001 From: Juergen Lock Date: Sun, 28 Apr 2013 17:34:17 +0000 Subject: Add new port comms/dabstick-radio: While preparing for a release 4.2 of the sdr-j software package, we created two new programs a DAB receiver a broad spectrum version of the FM receiver It is quite obvious that one can use a DAB stick to receive DAB programs. However, the DAB software presented here is a real SDR in that it uses the 8 bit I/Q samples of the DAB stick. WWW: http://www.sdr-j.tk/ --- comms/dabstick-radio/files/patch-utilities_decimator.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 comms/dabstick-radio/files/patch-utilities_decimator.cpp (limited to 'comms/dabstick-radio/files/patch-utilities_decimator.cpp') diff --git a/comms/dabstick-radio/files/patch-utilities_decimator.cpp b/comms/dabstick-radio/files/patch-utilities_decimator.cpp new file mode 100644 index 000000000000..5b67bfccf3cc --- /dev/null +++ b/comms/dabstick-radio/files/patch-utilities_decimator.cpp @@ -0,0 +1,13 @@ +--- utilities/decimator.cpp.orig ++++ utilities/decimator.cpp +@@ -67,8 +67,8 @@ bool downDecimator::doDecimate (DSPFLOAT + */ + this -> inSamplerate = inSamplerate; + this -> outSamplerate = outSamplerate; +- inperiod = (int64_t)(100000000000) / inSamplerate; +- outperiod = (int64_t)(100000000000) / outSamplerate; ++ inperiod = (int64_t)(100000000000LL) / inSamplerate; ++ outperiod = (int64_t)(100000000000LL) / outSamplerate; + oldinsampleTime = 0; + currentinsampleTime = 0; + oldinsampleValue = 0; -- cgit v1.2.3