Skip to content

Commit

Permalink
num_samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Yida-Lin committed Dec 29, 2024
1 parent dc09e81 commit a11fa73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ int Xdf::load_xdf(std::string filename)
//read [StreamID]
const auto stream_id = read_bin<uint32_t>(file);
//read [NumSampleBytes], [NumSamples]
const uint64_t numSamp = read_length(file);
const uint64_t num_samples = read_length(file);
Stream& stream = streams[stream_id];

//for each sample
for (size_t i = 0; i < numSamp; i++)
for (size_t i = 0; i < num_samples; i++)
{
//read or deduce time stamp
const auto tsBytes = read_bin<uint8_t>(file);
Expand Down

0 comments on commit a11fa73

Please sign in to comment.