diff options
| author | Josh Blum <josh@joshknows.com> | 2010-04-03 19:43:20 -0700 |
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2010-04-03 19:43:20 -0700 |
| commit | 83bd55d63972804e62f3890a4a90c8288fcbad0c (patch) | |
| tree | b5bf6a8877b37b238f9f540b0b77d1425ed619b9 /host/examples | |
| parent | f4ccb204473884126bcff6551d224e263dd5102a (diff) | |
| download | uhd-83bd55d63972804e62f3890a4a90c8288fcbad0c.tar.gz uhd-83bd55d63972804e62f3890a4a90c8288fcbad0c.tar.bz2 uhd-83bd55d63972804e62f3890a4a90c8288fcbad0c.zip | |
extended stream cmd with mode enum, and extended fragment flags in metadata
Diffstat (limited to 'host/examples')
| -rw-r--r-- | host/examples/rx_timed_samples.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp index 58b5af9da..1292d9b27 100644 --- a/host/examples/rx_timed_samples.cpp +++ b/host/examples/rx_timed_samples.cpp @@ -67,11 +67,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << std::endl; std::cout << boost::format("Begin streaming %u samples, %d seconds in the future...") % total_num_samps % seconds_in_future << std::endl; - uhd::stream_cmd_t stream_cmd; + uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE); + stream_cmd.num_samps = total_num_samps; stream_cmd.stream_now = false; stream_cmd.time_spec = uhd::time_spec_t(seconds_in_future); - stream_cmd.continuous = false; - stream_cmd.num_samps = total_num_samps; sdev->issue_stream_cmd(stream_cmd); //loop until total number of samples reached |
