snapshot_ = snapshots.front();
// Get the samplerate and start time
- start_time_ = data->get_start_time();
- samplerate_ = data->samplerate();
+ start_time_ = snapshot_->start_time();
+ samplerate_ = snapshot_->samplerate();
if (samplerate_ == 0.0)
samplerate_ = 1.0;