aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_timed_samples.cpp
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-09-09 19:30:02 -0400
committerPhilip Balister <philip@opensdr.com>2010-09-09 19:30:02 -0400
commitd1a327862292d52d659b117aef28e37d9f60fb4b (patch)
tree319f4c4d84cd9700fd1881ed9f9451728a7ae505 /host/examples/rx_timed_samples.cpp
parent4a757e64cbb513e6461e547f4d095b0539ae0b09 (diff)
downloaduhd-d1a327862292d52d659b117aef28e37d9f60fb4b.tar.gz
uhd-d1a327862292d52d659b117aef28e37d9f60fb4b.tar.bz2
uhd-d1a327862292d52d659b117aef28e37d9f60fb4b.zip
Restore tx and rx timed smaple programs to the versions in master. They use floating point.
Diffstat (limited to 'host/examples/rx_timed_samples.cpp')
-rw-r--r--host/examples/rx_timed_samples.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp
index 5fbf8b6c5..4856f6779 100644
--- a/host/examples/rx_timed_samples.cpp
+++ b/host/examples/rx_timed_samples.cpp
@@ -85,12 +85,12 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
//loop until total number of samples reached
size_t num_acc_samps = 0; //number of accumulated samples
- uhd::rx_metadata_t md;
- std::vector<std::complex<short> > buff(dev->get_max_recv_samps_per_packet());
while(num_acc_samps < total_num_samps){
+ uhd::rx_metadata_t md;
+ std::vector<std::complex<float> > buff(dev->get_max_recv_samps_per_packet());
size_t num_rx_samps = dev->recv(
&buff.front(), buff.size(), md,
- uhd::io_type_t::COMPLEX_INT16,
+ uhd::io_type_t::COMPLEX_FLOAT32,
uhd::device::RECV_MODE_ONE_PACKET
);