Skip to content

Commit

Permalink
Return how many bytes were read
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth committed Feb 12, 2025
1 parent aa8c6a1 commit 95975f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SampleStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class LMMS_EXPORT SampleStream

~SampleStream() { sf_close(m_sndfile); }

void next(SampleFrame* ptr, std::size_t count) { sf_readf_float(m_sndfile, ptr->data(), count); }
auto next(SampleFrame* ptr, std::size_t count) -> size_t { return sf_readf_float(m_sndfile, ptr->data(), count); }
auto size() const -> size_t { return m_sfInfo.frames; }
auto sampleRate() const -> int { return m_sfInfo.samplerate; }

Expand Down

0 comments on commit 95975f7

Please sign in to comment.