case SigSession::Stopped:
_session.start_capture(
_sampling_bar->get_selected_device(),
- _sampling_bar->get_record_length(),
- _sampling_bar->get_sample_rate());
+ _sampling_bar->get_record_length());
break;
case SigSession::Running:
}
void SigSession::start_capture(struct sr_dev_inst *sdi,
- uint64_t record_length, uint64_t sample_rate)
+ uint64_t record_length)
{
stop_capture();
_sampling_thread.reset(new boost::thread(
&SigSession::sample_thread_proc, this, sdi,
- record_length, sample_rate));
+ record_length));
}
void SigSession::stop_capture()
}
void SigSession::sample_thread_proc(struct sr_dev_inst *sdi,
- uint64_t record_length, uint64_t sample_rate)
+ uint64_t record_length)
{
assert(sdi);
return;
}
- // Set the samplerate
- if (sr_config_set(sdi, SR_CONF_SAMPLERATE,
- &sample_rate) != SR_OK) {
- qDebug() << "Failed to configure samplerate.";
- sr_session_destroy();
- return;
- }
-
if (sr_session_start() != SR_OK) {
qDebug() << "Failed to start session.";
return;
capture_state get_capture_state() const;
- void start_capture(struct sr_dev_inst* sdi, uint64_t record_length,
- uint64_t sample_rate);
+ void start_capture(struct sr_dev_inst* sdi,
+ uint64_t record_length);
void stop_capture();
void load_thread_proc(const std::string name);
void sample_thread_proc(struct sr_dev_inst *sdi,
- uint64_t record_length, uint64_t sample_rate);
+ uint64_t record_length);
void feed_in_header(const sr_dev_inst *sdi);