Skip to content

Commit 8b2cc14

Browse files
authored
Merge pull request #123 from jamieforth/pr/sample-count
Off-by-one sample_count error
2 parents 84b9a6c + 2a36271 commit 8b2cc14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/recording.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ void recording::typed_transfer_loop(streamid_t streamid, double srate, const inl
386386
if (!shutdown_) {
387387
timestamps.push_back(first_timestamp);
388388
file_.write_data_chunk(streamid, timestamps, chunk, (uint32_t)in->get_channel_count());
389+
sample_count += timestamps.size();
389390
}
390391

391392
auto next_pull = Clock::now();

0 commit comments

Comments
 (0)