aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_timed_samples.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-16 01:54:36 +0000
committerJosh Blum <josh@joshknows.com>2010-07-16 01:54:36 +0000
commita17b6c31ecefa2f8752bb30b222eb3fa8b7d88d5 (patch)
treedaf5666ca179cf75ad708a0b20898c6b7a86367c /host/examples/rx_timed_samples.cpp
parentf34c3ce69ca6ecac9dedf7c13804064b860d8463 (diff)
parent624eb248cd5ee2343cb0f4f24f60916ea51b60fd (diff)
downloaduhd-a17b6c31ecefa2f8752bb30b222eb3fa8b7d88d5.tar.gz
uhd-a17b6c31ecefa2f8752bb30b222eb3fa8b7d88d5.tar.bz2
uhd-a17b6c31ecefa2f8752bb30b222eb3fa8b7d88d5.zip
Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
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 3b9acbb2c..a72e1ec81 100644
--- a/host/examples/rx_timed_samples.cpp
+++ b/host/examples/rx_timed_samples.cpp
@@ -84,12 +84,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_FLOAT32,
+ uhd::io_type_t::COMPLEX_INT16,
uhd::device::RECV_MODE_ONE_PACKET
);