Skip to content

Commit

Permalink
Merge pull request #123 from jamieforth/pr/sample-count
Browse files Browse the repository at this point in the history
Off-by-one sample_count error
  • Loading branch information
cboulay authored Jan 30, 2025
2 parents 84b9a6c + 2a36271 commit 8b2cc14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/recording.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ void recording::typed_transfer_loop(streamid_t streamid, double srate, const inl
if (!shutdown_) {
timestamps.push_back(first_timestamp);
file_.write_data_chunk(streamid, timestamps, chunk, (uint32_t)in->get_channel_count());
sample_count += timestamps.size();
}

auto next_pull = Clock::now();
Expand Down

0 comments on commit 8b2cc14

Please sign in to comment.