Skip to content

Commit 2a36271

Browse files
committed
Correct off-by-one sample_count
1 parent 84b9a6c commit 2a36271

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)