summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-17 10:13:20 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-17 10:13:20 +0100
commitd5db57bf0290133450b7cd10525532415076bf0e (patch)
tree4a071cc361c11fc1271eaa065f8209ee37fe4b2a /src
parentac0b24dc76cae40cf513e97160da9305a7d5505c (diff)
downloaddabmod-d5db57bf0290133450b7cd10525532415076bf0e.tar.gz
dabmod-d5db57bf0290133450b7cd10525532415076bf0e.tar.bz2
dabmod-d5db57bf0290133450b7cd10525532415076bf0e.zip
Increment num_frames_modulated
Diffstat (limited to 'src')
-rw-r--r--src/output/SDRDevice.h2
-rw-r--r--src/output/Soapy.cpp1
-rw-r--r--src/output/Soapy.h2
-rw-r--r--src/output/UHD.cpp2
-rw-r--r--src/output/UHD.h2
5 files changed, 6 insertions, 3 deletions
diff --git a/src/output/SDRDevice.h b/src/output/SDRDevice.h
index 89a9856..bcd5a39 100644
--- a/src/output/SDRDevice.h
+++ b/src/output/SDRDevice.h
@@ -107,7 +107,7 @@ class SDRDevice {
size_t num_underruns;
size_t num_late_packets;
size_t num_overruns;
- size_t num_frames_modulated; //TODO increment
+ size_t num_frames_modulated;
};
virtual void tune(double lo_offset, double frequency) = 0;
diff --git a/src/output/Soapy.cpp b/src/output/Soapy.cpp
index 82c926b..44f8f58 100644
--- a/src/output/Soapy.cpp
+++ b/src/output/Soapy.cpp
@@ -255,6 +255,7 @@ void Soapy::transmit_frame(const struct FrameData& frame)
num_acc_samps += ret;
}
+ num_frames_modulated++;
}
} // namespace Output
diff --git a/src/output/Soapy.h b/src/output/Soapy.h
index 7bf0239..67b280d 100644
--- a/src/output/Soapy.h
+++ b/src/output/Soapy.h
@@ -89,7 +89,7 @@ class Soapy : public Output::SDRDevice
size_t underflows = 0;
size_t overflows = 0;
size_t late_packets = 0;
- size_t num_frames_modulated = 0; //TODO increment
+ size_t num_frames_modulated = 0;
};
} // namespace Output
diff --git a/src/output/UHD.cpp b/src/output/UHD.cpp
index dda008b..c55939f 100644
--- a/src/output/UHD.cpp
+++ b/src/output/UHD.cpp
@@ -303,6 +303,8 @@ void UHD::transmit_frame(const struct FrameData& frame)
break;
}
}
+
+ num_frames_modulated++;
}
diff --git a/src/output/UHD.h b/src/output/UHD.h
index ddcb33b..b34455c 100644
--- a/src/output/UHD.h
+++ b/src/output/UHD.h
@@ -103,7 +103,7 @@ class UHD : public Output::SDRDevice
size_t num_underflows = 0;
size_t num_overflows = 0;
size_t num_late_packets = 0;
- size_t num_frames_modulated = 0; //TODO increment
+ size_t num_frames_modulated = 0;
size_t num_underflows_previous = 0;
size_t num_late_packets_previous = 0;