// Get the samplerate and start time
_start_time = data->get_start_time();
- _samplerate = data->get_samplerate();
+ _samplerate = data->samplerate();
if (_samplerate == 0.0)
_samplerate = 1.0;
{
}
-double SignalData::get_samplerate() const
+double SignalData::samplerate() const
{
return _samplerate;
}
SignalData();
public:
- double get_samplerate() const;
+ double samplerate() const;
void set_samplerate(double samplerate);
double get_start_time() const;
snapshots.front();
const double pixels_offset = offset / scale;
- const double samplerate = _data->get_samplerate();
+ const double samplerate = _data->samplerate();
const double start_time = _data->get_start_time();
const int64_t last_sample = snapshot->get_sample_count() - 1;
const double samples_per_pixel = samplerate * scale;
const double scale = _view->scale();
assert(scale > 0);
- double samplerate = _decoder_stack->get_samplerate();
+ double samplerate = _decoder_stack->samplerate();
// Show sample rate as 1Hz when it is unknown
if (samplerate == 0.0)
const shared_ptr<pv::data::LogicSnapshot> &snapshot =
snapshots.front();
- double samplerate = _data->get_samplerate();
+ double samplerate = _data->samplerate();
// Show sample rate as 1Hz when it is unknown
if (samplerate == 0.0)
const double start_time = d->get_start_time();
left_time = min(left_time, start_time);
right_time = max(right_time, start_time +
- d->get_max_sample_count() / d->get_samplerate());
+ d->get_max_sample_count() / d->samplerate());
}
assert(left_time < right_time);
if (!sig_data)
return;
- length = _data_length / (sig_data->get_samplerate() * _scale);
+ length = _data_length / (sig_data->samplerate() * _scale);
offset = _offset / _scale;
}