summaryrefslogtreecommitdiff
path: root/comms/dabstick-radio/files/patch-utilities_decimator.cpp
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2013-04-28 17:34:17 +0000
committerJuergen Lock <nox@FreeBSD.org>2013-04-28 17:34:17 +0000
commit292784d76ac5cda1ac57e874c8effe8bcf625db1 (patch)
tree864c4aa9976b80bee9221b0b9c0bd50bc4b7bafd /comms/dabstick-radio/files/patch-utilities_decimator.cpp
parentTrim old-style header. (diff)
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/
Notes
Notes: svn path=/head/; revision=316735
Diffstat (limited to 'comms/dabstick-radio/files/patch-utilities_decimator.cpp')
-rw-r--r--comms/dabstick-radio/files/patch-utilities_decimator.cpp13
1 files changed, 13 insertions, 0 deletions
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;