diff options
Diffstat (limited to 'OutputUHD.cpp')
-rw-r--r-- | OutputUHD.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OutputUHD.cpp b/OutputUHD.cpp index c337262..a56112d 100644 --- a/OutputUHD.cpp +++ b/OutputUHD.cpp @@ -37,7 +37,7 @@ using namespace std; -void OutputUHD::Init(double txgain) +OutputUHD::OutputUHD(double txgain) { m_txgain = txgain; @@ -72,7 +72,7 @@ void OutputUHD::Init(double txgain) myTxStream = m_usrp->get_tx_stream(stream_args); } -size_t OutputUHD::Transmit(std::vector<complexf> samples, size_t sizeIn, double *first_sample_time) +size_t OutputUHD::Transmit(const complexf *samples, size_t sizeIn, double *first_sample_time) { const double tx_timeout = 20.0; @@ -91,7 +91,7 @@ size_t OutputUHD::Transmit(std::vector<complexf> samples, size_t sizeIn, double num_acc_samps += num_tx_samps; - md.time_spec += uhd::time_spec_t(0, num_acc_samps/m_samplerate); + md.time_spec += uhd::time_spec_t(0, num_tx_samps/m_samplerate); } return num_acc_samps; |